Fixes the unhandled promise rejection
This commit is contained in:
parent
5c07687b3e
commit
0a671c8223
|
|
@ -161,6 +161,8 @@ describe('RepoSidebar', () => {
|
|||
window.dispatchEvent(popEvent);
|
||||
|
||||
expect(Helper.getContent.calls.mostRecent().args[0].url).toContain(file1.url);
|
||||
|
||||
window.history.pushState({}, null, '/');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ describe('MRWidgetService', () => {
|
|||
});
|
||||
|
||||
it('should have methods defined', () => {
|
||||
window.history.pushState({}, null, '/');
|
||||
const service = new MRWidgetService(mr);
|
||||
|
||||
expect(service.merge()).toBeDefined();
|
||||
|
|
|
|||
Loading…
Reference in New Issue