author | ymh <ymh.work@gmail.com> |
Sun, 28 Feb 2016 09:30:23 +0100 | |
changeset 134 | c06d08c8a1b8 |
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); } } }); }