Sha256: 706f38bc55a0c6a9515d5e8676e3a6fa4fa1dc62820fad0b73164d8230e2d91f

Contents?: true

Size: 504 Bytes

Versions: 18

Compression:

Stored size: 504 Bytes

Contents

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);
      }
    }
  });
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bootstrap-bookingsync-sass-1.0.5 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.4 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.3 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.2 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.1 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta12 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta11 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta10 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta9 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta8 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta7 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta6 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta5 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta4 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta3 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta2 tests/helpers/module-for-acceptance.js
bootstrap-bookingsync-sass-1.0.0.beta1 tests/helpers/module-for-acceptance.js