Fixes the unhandled promise rejection

This commit is contained in:
Tim Zallmann 2017-10-04 11:20:06 +02:00
parent 5c07687b3e
commit 0a671c8223
2 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,8 @@ describe('RepoSidebar', () => {
window.dispatchEvent(popEvent);
expect(Helper.getContent.calls.mostRecent().args[0].url).toContain(file1.url);
window.history.pushState({}, null, '/');
});
});
});

View File

@ -31,6 +31,7 @@ describe('MRWidgetService', () => {
});
it('should have methods defined', () => {
window.history.pushState({}, null, '/');
const service = new MRWidgetService(mr);
expect(service.merge()).toBeDefined();