-
Notifications
You must be signed in to change notification settings - Fork 0
/
framework.js
35 lines (30 loc) · 854 Bytes
/
framework.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Mocha
if (parent.mocha) {
window.mocha = parent.mocha;
window.Mocha = parent.Mocha;
// BDD or QUnit
window.before = parent.before;
window.after = parent.after;
window.beforeEach = parent.beforeEach;
window.afterEach = parent.afterEach;
window.run = parent.run;
// BDD
window.describe = parent.describe;
window.it = parent.it;
window.xit = parent.xit;
// QUnit
window.suite = parent.suite;
window.test = parent.test;
// TDD
window.setup = parent.setup;
window.teardown = parent.teardown;
window.suiteSetup = parent.suiteSetup;
window.suiteTeardown = parent.suiteTeardown;
}
if (parent.chai) {
// Chai
window.AssertionError = parent.chai.AssertionError;
window.should = parent.should;
window.expect = parent.expect;
window.assert = parent.assert;
}