Commit 0a671c82 authored by Tim Zallmann's avatar Tim Zallmann

Fixes the unhandled promise rejection

parent 5c07687b
...@@ -161,6 +161,8 @@ describe('RepoSidebar', () => { ...@@ -161,6 +161,8 @@ describe('RepoSidebar', () => {
window.dispatchEvent(popEvent); window.dispatchEvent(popEvent);
expect(Helper.getContent.calls.mostRecent().args[0].url).toContain(file1.url); expect(Helper.getContent.calls.mostRecent().args[0].url).toContain(file1.url);
window.history.pushState({}, null, '/');
}); });
}); });
}); });
......
...@@ -31,6 +31,7 @@ describe('MRWidgetService', () => { ...@@ -31,6 +31,7 @@ describe('MRWidgetService', () => {
}); });
it('should have methods defined', () => { it('should have methods defined', () => {
window.history.pushState({}, null, '/');
const service = new MRWidgetService(mr); const service = new MRWidgetService(mr);
expect(service.merge()).toBeDefined(); expect(service.merge()).toBeDefined();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment