File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 15
15
"devDependencies" : {
16
16
"chai" : " ~1.6.1" ,
17
17
"jquery" : " ^2.1.1" ,
18
- "jsdom" : " ^5.4.1 " ,
18
+ "jsdom" : " ^5.4.3 " ,
19
19
"mocha" : " ^2.2.4" ,
20
20
"mocha-jsdom" : " ^0.3.0"
21
21
},
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
2
< html >
3
3
< head >
4
- < meta charset ="utf-8 ">
5
- < meta name ='viewport ' content ='width=device-width,initial-scale=1.0 '>
4
+ < meta charset ='utf-8 '>
6
5
< title > Nprogress tests</ title >
7
-
8
- <!-- mocha -->
9
- < link href ="https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.css " rel ="stylesheet " />
10
- < script src ="https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.js "> </ script >
11
- < script src ="https://cdn.rawgit.com/chaijs/chai/2.3.0/chai.js "> </ script >
6
+ < meta name ='viewport ' content ='width=device-width,initial-scale=1.0 '>
7
+ < link href ='https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.css ' rel ='stylesheet ' />
8
+ </ head >
9
+ < body >
10
+ < div id ='mocha '> </ div >
11
+ < script src ='https://cdn.rawgit.com/visionmedia/mocha/2.2.4/mocha.js '> </ script >
12
+ < script src ='https://cdn.rawgit.com/chaijs/chai/2.3.0/chai.js '> </ script >
13
+ < script > window . onerror = function ( msg , url , line ) { document . getElementById ( 'mocha' ) . innerHTML += '<h1>' + msg + '</' + 'h1>' + '<h2>' + url + ':' + line + '</' + 'h2>' ; return false } </ script >
12
14
< script > mocha . ignoreLeaks ( ) ; mocha . setup ( 'bdd' ) ; </ script >
13
15
14
16
<!-- nprogress -->
15
- < script src =" https://code.jquery.com/jquery-1.11.2.min.js " > </ script >
17
+ < script src =' https://code.jquery.com/jquery-1.11.2.min.js ' > </ script >
16
18
< script src ='../nprogress.js '> </ script >
17
19
18
20
<!-- tests -->
19
- < script src ="test.js "> </ script >
20
- </ head >
21
- < body >
22
- < div id ="mocha "> </ div >
21
+ < script src ='test.js '> </ script >
23
22
< script > mocha . run ( ) </ script >
24
23
</ body >
25
24
</ html >
You can’t perform that action at this time.
0 commit comments