File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 " />
55 < title > Mocha</ title >
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7- < link rel ="stylesheet " href ="mocha.css " />
7+ < link rel ="stylesheet " href ="../../ mocha.css " />
88 </ head >
99 < body >
1010 < div id ="mocha "> </ div >
11- < script src ="mocha.js "> </ script >
11+ < script src ="../../ mocha.js "> </ script >
1212 < script >
1313 mocha . setup ( 'bdd' ) ;
1414 </ script >
15- < script src ="tests.spec.js "> </ script >
15+ < script >
16+ describe ( 'example' , function ( ) {
17+ it ( 'should pass' , function ( ) {
18+ return ;
19+ } ) ;
20+
21+ it ( 'should fail' , function ( ) {
22+ throw new Error ( 'fail' ) ;
23+ } ) ;
24+ } ) ;
25+ </ script >
1626 < script >
1727 mocha . run ( ) ;
1828 </ script >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 " />
5+ < title > Mocha</ title >
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < link rel ="stylesheet " href ="../../mocha.css " />
8+ </ head >
9+ < body >
10+ < div id ="mocha "> </ div >
11+ < script src ="../../mocha.js "> </ script >
12+ < script >
13+ mocha . setup ( 'bdd' ) ;
14+ </ script >
15+ < script >
16+ describe ( 'example' , function ( ) {
17+ it ( 'should pass' , function ( ) {
18+ return ;
19+ } ) ;
20+
21+ // it('should fail', function () {
22+ // throw new Error('fail');
23+ // });
24+ } ) ;
25+ </ script >
26+ < script >
27+ mocha . run ( ) ;
28+ </ script >
29+ </ body >
30+ </ html >
You can’t perform that action at this time.
0 commit comments