File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 "license" : " MIT" ,
1515 "devDependencies" : {
1616 "chai" : " ~1.6.1" ,
17+ "jquery" : " ^2.1.1" ,
18+ "jsdom" : " ~0.6.5" ,
1719 "mocha" : " ~1.11.0" ,
18- "jsdom" : " ~0.6.5 "
20+ "mocha- jsdom" : " ^0.1.1 "
1921 },
2022 "dependencies" : {}
2123}
Original file line number Diff line number Diff line change 77 < link rel ='stylesheet ' href ='../vendor/mocha.css '>
88
99 <!-- mocha -->
10- < script src ='../vendor/jquery-1.10 .js '> </ script >
10+ < script src ='../vendor/jquery-2.0 .js '> </ script >
1111 < script src ='../vendor/mocha.js '> </ script >
1212 < script > mocha . ignoreLeaks ( ) ; mocha . setup ( 'bdd' ) ; </ script >
1313 < script src ='../vendor/chai.js '> </ script >
14- < script > should = chai . should ( ) </ script >
15- < script > assert = chai . assert </ script >
16- < script > testSuite = describe ; </ script >
1714
18- <!-- simpletap -->
15+ <!-- nprogress -->
1916 < script src ='../nprogress.js '> </ script >
2017
2118 <!-- tests -->
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11( function ( ) {
2- if ( typeof module === 'object' ) require ( './setup' ) ;
3- var w = this ;
2+ if ( typeof process === 'object' ) {
3+ require ( 'mocha-jsdom' ) ( ) ;
4+ }
45
5- testSuite ( 'NProgress' , function ( ) {
6+ var root = this ;
7+ var assert = ( root . chai || require ( 'chai' ) ) . assert ;
8+
9+ describe ( 'NProgress' , function ( ) {
610 var $ , NProgress ;
711
812 beforeEach ( function ( ) {
9- $ = w . jQuery || require ( 'jquery' ) ;
10- NProgress = w . NProgress || require ( 'nprogress' ) ;
13+ $ = root . jQuery || require ( 'jquery' ) ;
14+ NProgress = root . NProgress || require ( '../ nprogress' ) ;
1115
1216 this . settings = $ . extend ( { } , NProgress . settings ) ;
1317 } ) ;
You can’t perform that action at this time.
0 commit comments