forked from react-bootstrap/dom-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
28 lines (21 loc) · 655 Bytes
/
Copy pathtest.js
File metadata and controls
28 lines (21 loc) · 655 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
'use strict';
var slice = Array.prototype.slice;
// Phantom js polyfill
if (!Function.prototype.bind) {
Function.prototype.bind = function(context) {
var func = this;
var args = slice.call(arguments, 1);
function bound() {
var invokedAsConstructor = func.prototype && (this instanceof func);
return func.apply(
!invokedAsConstructor && context || this,
args.concat(slice.call(arguments))
);
}
bound.prototype = func.prototype;
return bound;
};
}
global.expect = require('expect.js')
var testsContext = require.context('./test', true, /\.js$/);
testsContext.keys().forEach(testsContext);