Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saarikabhasi committed Oct 18, 2024
1 parent cbc6a3c commit f72f42c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('routing', () => {
} as ExtensionsService;
navigateToIndexDetailsPage('testIndex', '', extensionService, application, http, history);
expect(history.push).toHaveBeenCalledTimes(1);
expect(application.navigateToUrl).toHaveBeenCalledTimes(0);
expect(application.navigateToUrl).not.toHaveBeenCalled();
});

it('renders route from extensionService indexDetailsPageRoute with tab id', () => {
Expand All @@ -60,6 +60,7 @@ describe('routing', () => {
IndexDetailsSection.Settings
);
expect(application.navigateToUrl).toHaveBeenCalledTimes(1);
expect(application.navigateToUrl).toHaveBeenCalledWith('test_url/settings');
});
});

Expand Down

0 comments on commit f72f42c

Please sign in to comment.