File tree Expand file tree Collapse file tree 3 files changed +231
-220
lines changed
Expand file tree Collapse file tree 3 files changed +231
-220
lines changed Original file line number Diff line number Diff line change 3030 "url" : " http://www.opensource.org/licenses/MIT"
3131 }
3232 ],
33+ "devDependencies" : {
34+ "mocha" : " latest" ,
35+ "expect.js" : " latest"
36+ },
3337 "scripts" : {
34- "test" : " node ./test/test.js "
38+ "test" : " mocha --reporter spec "
3539 },
3640 "files" : [
3741 " tmpl.js"
Original file line number Diff line number Diff line change 1515< head >
1616< meta charset ="utf-8 ">
1717< title > JavaScript Templates Test</ title >
18- < link rel ="stylesheet " href ="http://code.jquery .com/qunit/git/qunit .css ">
18+ < link rel ="stylesheet " href ="http://blueimp.github .com/cdn/css/mocha.min .css ">
1919</ head >
2020< body >
21- < h1 id ="qunit-header "> JavaScript Templates Test</ h1 >
22- < h2 id ="qunit-banner "> </ h2 >
23- < div id ="qunit-testrunner-toolbar "> </ div >
24- < h2 id ="qunit-userAgent "> </ h2 >
25- < ol id ="qunit-tests "> </ ol >
26- < div id ="qunit-fixture "> </ div >
21+ < div id ="mocha "> </ div >
22+ < script src ="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js "> </ script >
23+ < script src ="http://blueimp.github.com/cdn/js/mocha.min.js "> </ script >
24+ < script src ="http://blueimp.github.com/cdn/js/expect.min.js "> </ script >
25+ < script >
26+ mocha . setup ( 'bdd' ) ;
27+ $ ( function ( ) {
28+ mocha . run ( ) ;
29+ } ) ;
30+ </ script >
2731< script type ="text/html " id ="template "> { %= o . value % } </ script >
2832< script src ="../tmpl.js "> </ script >
29- < script src ="http://code.jquery.com/qunit/git/qunit.js "> </ script >
3033< script src ="test.js "> </ script >
3134</ body >
3235</ html >
You can’t perform that action at this time.
0 commit comments