mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Always shutdown the mirage server
This commit is contained in:
@@ -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 = {}) =>
|
||||
|
||||
@@ -19,6 +19,10 @@ moduleForComponent(
|
||||
this.server = startMirage();
|
||||
this.server.create('namespace');
|
||||
},
|
||||
afterEach() {
|
||||
this.server.shutdown();
|
||||
window.localStorage.clear();
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -20,7 +20,6 @@ moduleForComponent(
|
||||
this.server = startMirage();
|
||||
this.server.create('namespace');
|
||||
},
|
||||
|
||||
afterEach() {
|
||||
this.server.shutdown();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user