File tree 2 files changed +43
-3
lines changed
2 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 " />
5
5
< title > Mocha</ title >
6
6
< 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 " />
8
8
</ head >
9
9
< body >
10
10
< div id ="mocha "> </ div >
11
- < script src ="mocha.js "> </ script >
11
+ < script src ="../../ mocha.js "> </ script >
12
12
< script >
13
13
mocha . setup ( 'bdd' ) ;
14
14
</ 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 >
16
26
< script >
17
27
mocha . run ( ) ;
18
28
</ 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