File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,5 +34,4 @@ <h3 class="fancy">
3434 </ ul >
3535 </ div >
3636 </ section >
37- < script src ="/chai.js " type ="text/javascript "> </ script >
3837</ 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 11---
22 title : Online Test Suite
3- template : tests
3+ layout : test
44 weight : 35
55 permalink : /api/test/
66---
@@ -11,5 +11,3 @@ This is the test suite that we use to test Chai during development. Use it to co
1111that Chai will function correctly in your browser environment (` should ` does
1212not work in IE9). These tests are powered by the awesome [ Mocha] ( http://visionmedia.github.com/mocha/ )
1313test 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