Commit 75e61345 authored by winh's avatar winh

Add missing tear down of sidebarMockInterceptor (!11204)

parent aec53bab
...@@ -24,6 +24,7 @@ describe('sidebar assignees', () => { ...@@ -24,6 +24,7 @@ describe('sidebar assignees', () => {
SidebarService.singleton = null; SidebarService.singleton = null;
SidebarStore.singleton = null; SidebarStore.singleton = null;
SidebarMediator.singleton = null; SidebarMediator.singleton = null;
Vue.http.interceptors = _.without(Vue.http.interceptors, Mock.sidebarMockInterceptor);
}); });
it('calls the mediator when saves the assignees', () => { it('calls the mediator when saves the assignees', () => {
......
...@@ -14,6 +14,7 @@ describe('Sidebar mediator', () => { ...@@ -14,6 +14,7 @@ describe('Sidebar mediator', () => {
SidebarService.singleton = null; SidebarService.singleton = null;
SidebarStore.singleton = null; SidebarStore.singleton = null;
SidebarMediator.singleton = null; SidebarMediator.singleton = null;
Vue.http.interceptors = _.without(Vue.http.interceptors, Mock.sidebarMockInterceptor);
}); });
it('assigns yourself ', () => { it('assigns yourself ', () => {
......
...@@ -10,6 +10,7 @@ describe('Sidebar service', () => { ...@@ -10,6 +10,7 @@ describe('Sidebar service', () => {
afterEach(() => { afterEach(() => {
SidebarService.singleton = null; SidebarService.singleton = null;
Vue.http.interceptors = _.without(Vue.http.interceptors, Mock.sidebarMockInterceptor);
}); });
it('gets the data', (done) => { it('gets the data', (done) => {
......
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