forked from VoliJS/NestedTypes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.all.html
48 lines (43 loc) · 1.44 KB
/
tests.all.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<meta charset="utf-8"/>
<title>Models Tests</title>
<link rel="stylesheet" href="node_modules/mocha/mocha.css"/>
</head>
<body>
<div id="mocha"></div>
<script src="node_modules/requirejs/require.js"></script>
<script type="text/javascript">
require.config( {
paths : {
'underscore' : 'node_modules/underscore/underscore',
'backbone' : 'node_modules/backbone/backbone',
'jquery' : 'node_modules/jquery/dist/jquery',
'mocha' : 'node_modules/mocha/mocha',
'chai' : 'node_modules/chai/chai',
'sinon' : 'node_modules/sinon/lib/sinon',
'sinon-chai' : 'node_modules/sinon-chai/lib/sinon-chai',
'../nestedtypes' : './nestedtypes'
},
shim : {
'sinon' : {
exports : 'sinon'
}
}
} );
require( [ 'require', 'sinon', 'chai', 'sinon-chai', 'mocha', '../nestedtypes' ],
function( require, sinon, chai, sinonChai ){
// Chai
chai.should();
chai.use( sinonChai );
/*globals mocha */
mocha.setup( 'bdd' );
var search = window.location.search;
require( [ 'test/basic', 'test/types', 'test/backboneTypes', 'test/relations' ], function(){
mocha.run();
} );
}
);
</script>
</body>
</html>