Archive completed search consolidation sprints
This commit is contained in:
@@ -348,7 +348,7 @@ describe('GlobalSearchComponent', () => {
|
||||
{
|
||||
domain: 'vex',
|
||||
route: '/vex-hub/CVE-2024-21626',
|
||||
expected: '/security/advisories-vex?q=CVE-2024-21626',
|
||||
expected: '/ops/policy/vex/search?cveId=CVE-2024-21626',
|
||||
},
|
||||
{
|
||||
domain: 'platform',
|
||||
@@ -361,6 +361,7 @@ describe('GlobalSearchComponent', () => {
|
||||
component.onQueryChange('test');
|
||||
|
||||
for (const testCase of cases) {
|
||||
router.navigateByUrl.calls.reset();
|
||||
const card = createCard(testCase.domain, testCase.route);
|
||||
component.onCardAction(card, card.actions[0]);
|
||||
expect(router.navigateByUrl).toHaveBeenCalledWith(testCase.expected);
|
||||
|
||||
Reference in New Issue
Block a user