1 | <html>
|
2 | <head>
|
3 | <title>Test</title>
|
4 | <meta charset="utf-8">
|
5 | <link rel="stylesheet" href="../../node_modules/mocha/mocha.css" />
|
6 | <script src="../../node_modules/mocha/mocha.js"></script>
|
7 | <script src="../../node_modules/chai/chai.js"></script>
|
8 | </head>
|
9 | <body>
|
10 | <div id="mocha"></div>
|
11 | <script>
|
12 | expect = chai.expect;
|
13 |
|
14 | mocha.ui('bdd');
|
15 | mocha.reporter('html');
|
16 |
|
17 | describe('Tests', function() {
|
18 | it('passes 1', function() {
|
19 | expect(1).to.be.ok;
|
20 | });
|
21 | it('passes 2', function() {
|
22 | expect(2).to.be.ok;
|
23 | });
|
24 | it('passes 3', function() {
|
25 | expect(3).to.be.ok;
|
26 | });
|
27 |
|
28 | it('skips 1');
|
29 | it('skips 2');
|
30 | it('skips 3');
|
31 |
|
32 | it('fails 1', function() {
|
33 | expect(false).to.be.true;
|
34 | });
|
35 | it('fails 2', function() {
|
36 | expect(false).to.be.true;
|
37 | });
|
38 | it('fails 3', function() {
|
39 | expect(false).to.be.true;
|
40 | });
|
41 | it('passes 4', function() {
|
42 | expect(1).to.be.ok;
|
43 | });
|
44 | it('passes 5', function() {
|
45 | expect(2).to.be.ok;
|
46 | });
|
47 | it('passes 6', function() {
|
48 | expect(3).to.be.ok;
|
49 | });
|
50 | it('fails 4', function() {
|
51 | expect(false).to.be.true;
|
52 | });
|
53 | it('fails 5', function() {
|
54 | expect(false).to.be.true;
|
55 | });
|
56 | it('fails 6', function() {
|
57 | expect(false).to.be.true;
|
58 | });
|
59 |
|
60 | xit('skips 4', function() {
|
61 | expect(false).to.be.true;
|
62 | });
|
63 | xit('skips 5', function() {
|
64 | expect(false).to.be.true;
|
65 | });
|
66 | xit('skips 6', function() {
|
67 | expect(false).to.be.true;
|
68 | });
|
69 | });
|
70 |
|
71 | mocha.run();
|
72 | </script>
|
73 | </body>
|
74 | </html>
|