ember-cli 1.13.11

This commit is contained in:
Matthew Dillon 2015-11-12 06:36:22 -07:00
parent d185dad716
commit 1fe7702430
12 changed files with 64 additions and 32 deletions

View file

@ -0,0 +1,23 @@
import { module } from 'qunit';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';
export default function(name, options = {}) {
module(name, {
beforeEach() {
this.application = startApp();
if (options.beforeEach) {
options.beforeEach.apply(this, arguments);
}
},
afterEach() {
destroyApp(this.application);
if (options.afterEach) {
options.afterEach.apply(this, arguments);
}
}
});
}