Skip to content

Commit 50e0acf

Browse files
Chahat JainChahat Jain
authored andcommitted
feat(navigation): privacy policy in new tab
1 parent affe5ea commit 50e0acf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/components/src/navigation/navigation-list.component.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ describe('Navigation List Component', () => {
8585
);
8686
const footerItemsCount = spectator.component.footerItems?.length;
8787
expect(spectator.queryAll('.footer-item').length).toBe(footerItemsCount);
88+
expect(spectator.query(LinkComponent)?.paramsOrUrl).toMatchObject({
89+
navType: NavigationParamsType.External,
90+
url: 'http://test',
91+
windowHandling: ExternalNavigationWindowHandling.NewWindow
92+
});
8893
});
8994

9095
test('should update layout when collapsed input is updated', () => {
@@ -198,10 +203,5 @@ describe('Navigation List Component', () => {
198203
);
199204
expect(spectator.query('.nav-group-icon')).toExist();
200205
expect(spectator.query('.nav-group-label')).toExist();
201-
expect(spectator.query(LinkComponent)?.paramsOrUrl).toMatchObject({
202-
navType: NavigationParamsType.External,
203-
url: 'http://test',
204-
windowHandling: ExternalNavigationWindowHandling.NewWindow
205-
});
206206
});
207207
});

0 commit comments

Comments
 (0)