specify-core
Version:
Describe, structure and runs tests for the Specify framework.
30 lines • 1 kB
JavaScript
var Future = require('data.future');
module.exports = function (specify) {
var _scope = {
specify: specify,
tests: [],
beforeAll: [],
afterAll: [],
beforeEach: [],
afterEach: []
};
(function () {
var _scope$2 = {
specify: _scope.specify,
tests: [],
beforeAll: [],
afterAll: [],
beforeEach: [],
afterEach: []
};
_scope.tests.push(_scope.specify.Test.Suite.create({
name: 'Macros',
tests: _scope$2.tests,
beforeAll: _scope.specify.Hook(_scope$2.beforeAll),
beforeEach: _scope.specify.Hook(_scope$2.beforeEach),
afterAll: _scope.specify.Hook(_scope$2.afterAll),
afterEach: _scope.specify.Hook(_scope$2.afterEach)
}));
}());
return _scope.tests[0];
}(typeof module !== 'undefined' && typeof require !== 'undefined' ? require('specify-core') : window.Specify.core);