Skip to content

Commit d3d2f42

Browse files
Update src/__testing__/routing.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Rajesh Nagarajan <139469505+Rajesh-Nagarajan-11@users.noreply.github.com>
1 parent 7beeb14 commit d3d2f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__testing__/routing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('routing utilities', () => {
4343
expect(getShareableResourceRoute(RESOURCE_TYPE.DESIGN, 'd2', 'design')).toBe(
4444
'http://localhost/workspace?mode=design&design=d2'
4545
);
46-
expect(() => getShareableResourceRoute('filter' as unknown as typeof RESOURCE_TYPE[keyof typeof RESOURCE_TYPE], 'f1', 'filter')).toThrow(
46+
expect(() => getShareableResourceRoute('filter' as never, 'f1', 'filter')).toThrow(
4747
'Unknown resource type filter'
4848
);
4949
});

0 commit comments

Comments
 (0)