Commit f183dba7 authored by Winnie Hellmann's avatar Winnie Hellmann

Cleanup polling of merge request widget in tests

parent cb0f024c
......@@ -114,6 +114,8 @@ export default {
},
beforeDestroy() {
eventHub.$off('mr.discussion.updated', this.checkStatus);
this.pollingInterval.destroy();
this.deploymentsInterval.destroy();
},
methods: {
createService(store) {
......
......@@ -27,6 +27,10 @@ describe('mrWidgetOptions', () => {
});
});
afterEach(() => {
vm.$destroy();
});
describe('data', () => {
it('should instantiate Store and Service', () => {
expect(vm.mr).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