File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change
1
+ language : node
2
+ node_js :
3
+ - " 0.10"
4
+ before_script :
5
+ - npm install -g grunt-cli
Original file line number Diff line number Diff line change
1
+ ##JWT.io
2
+
3
+ [ ![ Build Status] ( https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io.png?branch=master )] ( https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io )
Original file line number Diff line number Diff line change 15
15
"grunt-contrib-htmlmin" : " ^0.2.0" ,
16
16
"grunt-contrib-cssmin" : " ^0.9.0" ,
17
17
"grunt-mocha-phantomjs" : " ^0.4.3"
18
+ },
19
+ "scripts" : {
20
+ "test" : " grunt build --verbose"
18
21
}
19
22
}
Original file line number Diff line number Diff line change 1
- <!DOCTYPE>
1
+ <!DOCTYPE HTML >
2
2
< html >
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< title > Mocha Tests</ title >
6
- < link rel ="stylesheet " href ="/node_modules/mocha/mocha.css " />
6
+ < link rel ="stylesheet " href =".. /node_modules/mocha/mocha.css " />
7
7
</ head >
8
8
< body >
9
9
< div id ="mocha "> </ div >
10
10
11
- < script src ="/node_modules/mocha/mocha.js "> </ script >
12
- < script src ="/node_modules/expect.js/expect.js "> </ script >
11
+ < script src =".. /node_modules/mocha/mocha.js "> </ script >
12
+ < script src =".. /node_modules/expect.js/expect.js "> </ script >
13
13
14
14
< script >
15
15
if ( typeof mocha === 'undefined' ) {
16
- mocha = require ( 'mocha' ) ;
16
+ mocha = require ( 'mocha' ) ;
17
17
}
18
18
mocha . timeout ( 25000 ) ;
19
19
mocha . ui ( 'bdd' ) ;
20
20
mocha . reporter ( 'html' ) ;
21
21
mocha . setup ( { ignoreLeaks : true } ) ;
22
22
</ script >
23
23
24
- < script src ="vendor/jsonlint/lib/jsonlint.js "> </ script >
25
- < script src ="vendor/json-sans-eval-min/index.js "> </ script >
26
- < script src ="vendor/jsrsasign/index.js "> </ script >
27
- < script src ="vendor/jws.js/index.js "> </ script >
28
- < script src ="js/jwt.js "> </ script >
24
+ < script src ="../ vendor/jsonlint/lib/jsonlint.js "> </ script >
25
+ < script src ="../ vendor/json-sans-eval-min/index.js "> </ script >
26
+ < script src ="../ vendor/jsrsasign/index.js "> </ script >
27
+ < script src ="../ vendor/jws.js/index.js "> </ script >
28
+ < script src ="../ js/jwt.js "> </ script >
29
29
30
- < script src ="test/test.js "> </ script >
30
+ < script src ="../ test/test.js "> </ script >
31
31
32
32
< script >
33
- mocha . run ( ) ;
33
+ if ( window . mochaPhantomJS ) { mochaPhantomJS . run ( ) ; }
34
+ else { mocha . run ( ) ; }
34
35
</ script >
35
36
</ body >
36
37
</ html >
You can’t perform that action at this time.
0 commit comments