Always shutdown the mirage server

This commit is contained in:
Michael Lange
2018-02-02 09:51:44 -08:00
parent de27385801
commit 9e606f389c
4 changed files with 12 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ moduleForComponent('job-page/parts/children', 'Integration | Component | job-pag
this.server = startMirage();
this.server.create('namespace');
},
afterEach() {
this.server.shutdown();
window.localStorage.clear();
},
});
const props = (job, options = {}) =>

View File

@@ -19,6 +19,10 @@ moduleForComponent(
this.server = startMirage();
this.server.create('namespace');
},
afterEach() {
this.server.shutdown();
window.localStorage.clear();
},
}
);

View File

@@ -15,6 +15,10 @@ moduleForComponent('job-page/parts/summary', 'Integration | Component | job-page
this.server = startMirage();
this.server.create('namespace');
},
afterEach() {
this.server.shutdown();
window.localStorage.clear();
},
});
test('jobs with children use the children diagram', function(assert) {

View File

@@ -20,7 +20,6 @@ moduleForComponent(
this.server = startMirage();
this.server.create('namespace');
},
afterEach() {
this.server.shutdown();
},