author | ymh <ymh.work@gmail.com> |
Thu, 25 Feb 2016 12:24:30 +0100 | |
changeset 132 | d97eda8bc8ec |
parent 127 | 5cd8c3065c38 |
child 136 | 5fed7e1716c2 |
permissions | -rw-r--r-- |
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); } } }); }