test(web): the routes spec knows the public release notes page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user