forked from playcanvas/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.js
More file actions
33 lines (26 loc) · 692 Bytes
/
setup.js
File metadata and controls
33 lines (26 loc) · 692 Bytes
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
// move chai methods on window
(function(window) {
window.should = window.chai.should();
window.expect = window.chai.expect;
window.assert = window.chai.assert;
})(window);
// Added these helpers to speed up porting to mocha
// TODO: remove and replace with expect() calls in tests
window.strictEqual = function (a, b) {
expect(a).to.equal(b);
};
window.equal = function (a, b) {
expect(a).to.equal(b);
}
window.notEqual = function (a, b) {
expect(a).to.not.equal(b);
}
window.deepEqual = function (a, b) {
expect(a).to.deep.equal(b);
}
window.ok = function (a) {
expect(a).to.exist;
}
window.close = function (a, b, e) {
expect(a).to.be.closeTo(b, e);
}