Przeglądaj źródła

test: allow stateful route query parameters

彭峰 2 miesięcy temu
rodzic
commit
4d06b4139c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/app/core/all-routes.integration.spec.ts

+ 1 - 1
src/app/core/all-routes.integration.spec.ts

@@ -63,7 +63,7 @@ describe('all migrated routes', () => {
     const router = TestBed.inject(Router);
     for (const page of PAGE_CATALOG) {
       await harness.navigateByUrl(`/${page.path}`);
-      expect(router.url).withContext(page.path).toBe(`/${page.path}`);
+      expect(router.url.split(/[?#]/, 1)[0]).withContext(page.path).toBe(`/${page.path}`);
       expect(document.title).withContext(page.path).toContain(page.title);
     }
   });