1 | (function (factory) {
|
2 | if (typeof module === "object" && typeof module.exports === "object") {
|
3 | var v = factory(require, exports);
|
4 | if (v !== undefined) module.exports = v;
|
5 | }
|
6 | else if (typeof define === "function" && define.amd) {
|
7 | define(["require", "exports", "./tdd"], factory);
|
8 | }
|
9 | })(function (require, exports) {
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.getInterface = exports.afterEach = exports.beforeEach = exports.after = exports.before = exports.it = exports.describe = void 0;
|
13 | var tdd_1 = require("./tdd");
|
14 | Object.defineProperty(exports, "describe", { enumerable: true, get: function () { return tdd_1.suite; } });
|
15 | Object.defineProperty(exports, "it", { enumerable: true, get: function () { return tdd_1.test; } });
|
16 | Object.defineProperty(exports, "before", { enumerable: true, get: function () { return tdd_1.before; } });
|
17 | Object.defineProperty(exports, "after", { enumerable: true, get: function () { return tdd_1.after; } });
|
18 | Object.defineProperty(exports, "beforeEach", { enumerable: true, get: function () { return tdd_1.beforeEach; } });
|
19 | Object.defineProperty(exports, "afterEach", { enumerable: true, get: function () { return tdd_1.afterEach; } });
|
20 | function getInterface(executor) {
|
21 | var _a = tdd_1.getInterface(executor), suite = _a.suite, test = _a.test, before = _a.before, after = _a.after, beforeEach = _a.beforeEach, afterEach = _a.afterEach;
|
22 | return {
|
23 | describe: suite,
|
24 | it: test,
|
25 | before: before,
|
26 | after: after,
|
27 | beforeEach: beforeEach,
|
28 | afterEach: afterEach
|
29 | };
|
30 | }
|
31 | exports.getInterface = getInterface;
|
32 | });
|
33 |
|
\ | No newline at end of file |