File tree Expand file tree Collapse file tree 8 files changed +971
-88
lines changed Expand file tree Collapse file tree 8 files changed +971
-88
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,4 @@ <h3 class="fancy">
34
34
</ ul >
35
35
</ div >
36
36
</ section >
37
- < script src ="/chai.js " type ="text/javascript "> </ script >
38
37
</ footer >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ bodyClass: tests
4
+ ---
5
+ < nav id ="api " class ="sidebar sticky ">
6
+ < a href ="{{ site.github.url }}/api/ " class ="item{% if page.url == '/api/index.html' %} active{% endif %} ">
7
+ Introduction
8
+ </ a >
9
+ < a href ="{{ site.github.url }}/api/bdd/ " class ="item{% if page.url == '/api/bdd/' %} active{% endif %} ">
10
+ Expect / Should
11
+ </ a >
12
+ < a href ="{{ site.github.url }}/api/assert/ " class ="item{% if page.url == '/api/assert/' %} active{% endif %} ">
13
+ Assert
14
+ </ a >
15
+ < a href ="{{ site.github.url }}/api/plugins/ " class ="item{% if page.url == '/api/plugins/' %} active{% endif %} ">
16
+ Plugin Utilities
17
+ </ a >
18
+ < a href ="{{ site.github.url }}/api/test/ " class ="item{% if page.url == '/api/test/' %} active{% endif %} ">
19
+ Online Test Suite
20
+ </ a >
21
+ </ nav >
22
+ < div class ="documentation ">
23
+ < div class ="wrap ">
24
+ < div class ="rendered ">
25
+ < article >
26
+ {{ content }}
27
+ </ article >
28
+ </ div >
29
+ < div id ="mocha "> </ div >
30
+ </ div >
31
+ </ div >
32
+ < script src ="{{site.github.url}}/js/tests/mocha.js "> </ script >
33
+ < script >
34
+ mocha . setup ( 'tdd' ) ;
35
+ </ script >
36
+ < script src ="{{site.github.url}}/chai.js "> </ script >
37
+ < script >
38
+ err = function ( fn , msg ) {
39
+ try {
40
+ fn ( ) ;
41
+ throw new chai . AssertionError ( { message : 'Expected an error' } ) ;
42
+ } catch ( err ) {
43
+ if ( 'string' === typeof msg ) {
44
+ chai . expect ( err . message ) . to . equal ( msg ) ;
45
+ } else {
46
+ chai . expect ( err . message ) . to . match ( msg ) ;
47
+ }
48
+ }
49
+ } ;
50
+ </ script >
51
+ < script src ="{{site.github.url}}/js/tests/configuration.js "> </ script >
52
+ < script src ="{{site.github.url}}/js/tests/expect.js "> </ script >
53
+ < script src ="{{site.github.url}}/js/tests/should.js "> </ script >
54
+ < script src ="{{site.github.url}}/js/tests/assert.js "> </ script >
55
+ < script src ="{{site.github.url}}/js/tests/plugins.js "> </ script >
56
+ < script src ="{{site.github.url}}/js/tests/utilities.js "> </ script >
57
+ < script >
58
+ onload = function ( ) {
59
+ mocha . run ( ) ;
60
+ } ;
61
+ </ script >
Original file line number Diff line number Diff line change 1
1
---
2
2
title : Online Test Suite
3
- template : tests
3
+ layout : test
4
4
weight : 35
5
5
permalink : /api/test/
6
6
---
@@ -11,5 +11,3 @@ This is the test suite that we use to test Chai during development. Use it to co
11
11
that Chai will function correctly in your browser environment (` should ` does
12
12
not work in IE9). These tests are powered by the awesome [ Mocha] ( http://visionmedia.github.com/mocha/ )
13
13
test framework.
14
-
15
- *** The test suite is currently missing, as discussed [ on this issue] ( https://github.com/chaijs/chai-docs/issues/122 ) . We welcome any help in bringing it back!***
You can’t perform that action at this time.
0 commit comments