11import { act , render , screen } from '@testing-library/react' ;
2- import { createCounter } from 'mobx-vm-entities /utils/counter' ;
2+ import { createCounter } from 'mobx-view-model /utils/counter' ;
33import { describe , expect , test } from 'vitest' ;
44
5- import { PageViewModelMock } from '../page-view-model/page-view-model.impl .test' ;
5+ import { PageViewModelBaseMock } from '../page-view-model/page-view-model.base .test' ;
66
77import { withLazyPageViewModel } from './with-lazy-page-view-model' ;
88import { PageViewModelProps } from './with-page-view-model' ;
@@ -14,7 +14,7 @@ const createIdGenerator = (prefix?: string) => {
1414
1515describe ( 'withLazyPageViewModel' , ( ) => {
1616 test ( 'renders (required path param)' , async ( ) => {
17- class VM extends PageViewModelMock < { foo : string } > {
17+ class VM extends PageViewModelBaseMock < { foo : string } > {
1818 mount ( ) {
1919 super . mount ( ) ;
2020 }
@@ -38,7 +38,7 @@ describe('withLazyPageViewModel', () => {
3838 expect ( screen . getByText ( 'hello VM_0' ) ) . toBeDefined ( ) ;
3939 } ) ;
4040 test ( 'renders (optional path param)' , async ( ) => {
41- class VM extends PageViewModelMock < { foo ?: string } > {
41+ class VM extends PageViewModelBaseMock < { foo ?: string } > {
4242 mount ( ) {
4343 super . mount ( ) ;
4444 }
@@ -62,7 +62,7 @@ describe('withLazyPageViewModel', () => {
6262 expect ( screen . getByText ( 'hello VM_0' ) ) . toBeDefined ( ) ;
6363 } ) ;
6464 test ( 'renders (no path params)' , async ( ) => {
65- class VM extends PageViewModelMock {
65+ class VM extends PageViewModelBaseMock {
6666 mount ( ) {
6767 super . mount ( ) ;
6868 }
0 commit comments