Cleanup polling of merge request widget in tests
This commit is contained in:
parent
cb0f024cd4
commit
f183dba7c7
|
@ -114,6 +114,8 @@ export default {
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
eventHub.$off('mr.discussion.updated', this.checkStatus);
|
eventHub.$off('mr.discussion.updated', this.checkStatus);
|
||||||
|
this.pollingInterval.destroy();
|
||||||
|
this.deploymentsInterval.destroy();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createService(store) {
|
createService(store) {
|
||||||
|
|
|
@ -27,6 +27,10 @@ describe('mrWidgetOptions', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
vm.$destroy();
|
||||||
|
});
|
||||||
|
|
||||||
describe('data', () => {
|
describe('data', () => {
|
||||||
it('should instantiate Store and Service', () => {
|
it('should instantiate Store and Service', () => {
|
||||||
expect(vm.mr).toBeDefined();
|
expect(vm.mr).toBeDefined();
|
||||||
|
|
Loading…
Reference in New Issue