diff --git a/apps/web/src/app/app.routes.spec.ts b/apps/web/src/app/app.routes.spec.ts index 208848b..0ee7768 100644 --- a/apps/web/src/app/app.routes.spec.ts +++ b/apps/web/src/app/app.routes.spec.ts @@ -25,6 +25,7 @@ describe('appRoutes', () => { 'portfolio', 'explore', 'share/:token', + 'notes/:token', 'cartera', 'explorar', 'p/:key', @@ -32,12 +33,13 @@ describe('appRoutes', () => { expect(children[0].canActivate).toContain(authGuard); expect(children[1].canActivate).toContain(authGuard); expect(children[2].canActivate).toBeUndefined(); - // The page for clients needs no session: its link is the key. + // The pages for clients need no session: their link is the key. expect(children[3].canActivate).toBeUndefined(); - expect(children[6].canActivate).toBeUndefined(); + expect(children[4].canActivate).toBeUndefined(); + expect(children[7].canActivate).toBeUndefined(); // The Spanish paths of shared links lead to the English ones. - expect(children[4].redirectTo).toBe('portfolio'); - expect(children[5].redirectTo).toBe('explore'); + expect(children[5].redirectTo).toBe('portfolio'); + expect(children[6].redirectTo).toBe('explore'); }); it('gives each page its own state, not the root', async () => {