@relax.dev/router
Version:
Router for VKUI
12 lines (7 loc) • 326 B
text/typescript
import { Page } from './Page';
test('page clone', () => {
const page = new Page('vew_main', 'panel_main');
expect(JSON.stringify(page)).toEqual(JSON.stringify(page.clone()));
const page2 = new Page('vew_main', 'panel_main').makeInfinity();
expect(JSON.stringify(page2)).toEqual(JSON.stringify(page2.clone()));
});