Commit 010a3497 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'winh-sidebar-mock-fix' into 'master'

Add missing tear down of sidebarMockInterceptor

Closes #32020

See merge request !11204
parents ea5d43a3 75e61345
...@@ -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