Commit graph

243 commits

Author SHA1 Message Date
josher19
19c1fb1b9c Added almostEqual and deepAlmostEqual to assert test suite. 2012-04-23 13:56:44 +08:00
Jake Luer
87870b1b9d clean up redundant tests 2012-04-22 16:54:11 -04:00
Jake Luer
88c121e5ee added utility tests to browser specs 2012-04-22 15:26:54 -04:00
Jake Luer
c8c780aa35 beginning utility testing 2012-04-22 15:26:45 -04:00
Veselin Todorov
4a8b41e268 Include/contain are now both properties and methods 2012-04-20 20:44:23 +03:00
domenic
4227b80d3a Fixing order of error message test.
It was saying "expected <expected> to equal <actual>," which is backwards, and very confusing.
2012-04-15 15:14:43 -04:00
domenic
e7d89e24dd Add doctypes 2012-04-15 14:27:01 -04:00
Jake Luer
d171238026 [refactor] all usage of Assertion.prototype.assert now uses template tags and flags 2012-04-11 13:30:40 -04:00
domenic
41f645dbb8 Added support for throw(errorInstance).
Closes #47.
2012-04-09 00:34:02 -04:00
domenic
f58f1ebb12 Use a foolproof method of grabbing an error's name.
Closes #45.
2012-04-09 00:34:01 -04:00
domenic
48eeb56a75 Removed constructor.name check from throw.
Closes #46 and helps with #45.
2012-04-09 00:34:01 -04:00
Jake Luer
9d302aa435 disabled stackTrack configuration tests until api is stable again 2012-04-06 21:17:43 -04:00
Jake Luer
850509a73a first version of line displayed error for node js (unstable)
must have `chai.Assertion.includeStack = true`
2012-04-06 21:15:54 -04:00
Jake Luer
a7c262523c tests for assert interface negatives. Closed #42 2012-04-06 19:57:45 -04:00
Jake Luer
938c064d5f Added assert.fail. Closes #40 2012-03-21 07:17:51 -04:00
Jake Luer
1abf9cfc8c better error message for assert.operator. Closes #39 2012-03-21 07:17:39 -04:00
Jake Luer
7890dc6aa6 chai.fail no longer exists 2012-03-14 16:52:41 -04:00
Jake Luer
bacfc3d799 Added asset#isDefined. Closes #37. 2012-03-14 16:51:21 -04:00
Jake Luer
9ab32d7757 Merge branch 'bug/33-throws' 2012-03-07 11:42:50 -05:00
Jake Luer
09c970feaa Assertion#throw should tests updated 2012-03-07 11:38:58 -05:00
Jake Luer
7bb24c874e Assertion#throw expect tests 2012-03-07 11:37:23 -05:00
Veselin Todorov
8eaaf273f9 Add more tests for empty in should. 2012-03-07 18:09:52 +02:00
Veselin Todorov
2a34fe8120 Add more tests for empty in expect. 2012-03-07 18:01:18 +02:00
Veselin Todorov
f1e6a9abb3 Merge branch 'master' into empty-object
* master:
  don't switch act/exp
  Update the compiled verison.
  Add `assert.operator`.
  Notes on messages. #22
  browser build
  have been test
  below tests
  browser build
  remove unnecessary fail export
  full support for actual/expected where relevant
  Assertion.assert support expected value
  clean up error
2012-03-07 17:49:20 +02:00
Veselin Todorov
c7cc03f059 Add assert.operator. 2012-03-02 15:49:07 +02:00
Jake Luer
d0befca9b8 have been test 2012-03-01 19:29:55 -05:00
Jake Luer
fe72b36477 below tests 2012-03-01 19:28:30 -05:00
Veselin Todorov
670f128970 Add object & sane arguments support to Assertion#empty. 2012-02-29 21:51:42 +02:00
Veselin Todorov
4c9b513779 Update assert.doesNotThrow test in order to check the use case when type is a string. 2012-02-27 22:34:50 +02:00
Veselin Todorov
e835dc5730 Add test for assert.ifError. 2012-02-27 22:33:44 +02:00
Veselin Todorov
63e1349473 Falsey -> falsy. 2012-02-27 22:33:24 +02:00
Veselin Todorov
e95a29ec5e Full coverage for assert.throws and assert.doesNotThrow. 2012-02-27 22:27:36 +02:00
Veselin Todorov
10c2dc7a76 Add test for assert.doesNotThrow. 2012-02-27 22:22:05 +02:00
Veselin Todorov
4d9bd743a6 Add test for assert.throws. 2012-02-27 22:20:41 +02:00
Veselin Todorov
f28a293e89 Add test for assert.length. 2012-02-27 22:17:44 +02:00
Veselin Todorov
128f6971f8 Add test for assert.include. 2012-02-27 22:14:41 +02:00
Veselin Todorov
04ea811baa Add test for assert.isBoolean. 2012-02-27 22:12:04 +02:00
Veselin Todorov
0ca1a152ff Fix the implementation of assert.isNumber. 2012-02-27 22:10:19 +02:00
Veselin Todorov
de757467b2 Add test for assert.isString. 2012-02-27 22:04:17 +02:00
Veselin Todorov
16a6ab1bd3 Add test for assert.isArray. 2012-02-27 22:03:04 +02:00
Veselin Todorov
c95a364a59 Add test for assert.isUndefined. 2012-02-27 22:00:44 +02:00
Veselin Todorov
074ff270cc Add test for assert.isNotNull. 2012-02-27 21:57:30 +02:00
Veselin Todorov
95172dafaa Fix assert.isNull implementation. 2012-02-27 21:55:13 +02:00
Veselin Todorov
1fd0ca00f7 Add test for assert.isNull. 2012-02-27 21:35:03 +02:00
Veselin Todorov
875870bf9b Add test for assert.notDeepEqual. 2012-02-27 21:22:17 +02:00
Veselin Todorov
5ce1ef1b40 Add test for assert.deepEqual. 2012-02-27 21:20:39 +02:00
Veselin Todorov
a0794e79d7 Add test for assert.notStrictEqual. 2012-02-27 21:19:05 +02:00
Veselin Todorov
99a38a07f5 Add test for assert.strictEqual. 2012-02-27 21:17:03 +02:00
Veselin Todorov
35bf81bf1e Add test for assert.notEqual. 2012-02-27 21:15:14 +02:00
Veselin Todorov
536b6dce20 Add should tests for type checks. 2012-02-25 20:42:49 +02:00
Veselin Todorov
f731ebbc67 Add function type check test. 2012-02-25 20:38:43 +02:00
Veselin Todorov
dadda1bebe Add more type checks tests. 2012-02-25 20:33:05 +02:00
Veselin Todorov
701feaa671 Add test for new Number type check. 2012-02-25 20:28:40 +02:00
Jake Luer
ec4527cf4d putting coverage and tests for docs in docs/out/support 2012-02-25 01:33:59 -05:00
Jake Luer
c8ce24deb1 make docs 2012-02-25 01:33:59 -05:00
Jake Luer
d871b5f7d9 rename configuration test 2012-02-25 01:33:59 -05:00
Veselin Todorov
833a80c4d3 Add .closeTo() should test. 2012-02-25 00:00:15 +02:00
Veselin Todorov
400f67dbf0 Add .closeTo() expect test. 2012-02-25 00:00:03 +02:00
Veselin Todorov
ec0277de5c .. -> () in .satisfy() should test. 2012-02-24 22:46:04 +02:00
Veselin Todorov
06446fd8e0 Add .satisfy() should test. 2012-02-24 22:30:30 +02:00
Veselin Todorov
55814ded6f Add .satisfy() expect test. 2012-02-24 22:30:20 +02:00
Veselin Todorov
f5b1a873d4 Add respondTo should test. 2012-02-24 21:53:33 +02:00
Veselin Todorov
27a36a5f85 Add respondTo expect test. 2012-02-24 21:53:15 +02:00
Jake Luer
fad1e41adc suite name more generic 2012-02-22 23:45:19 -05:00
Jeff Barczewski
d23c5a8d4e Update test to be compatible with browsers that do not support err.stack 2012-02-22 16:45:42 -06:00
Jeff Barczewski
f64cb3ab0e udpated compiled chai.js and added to browser tests 2012-02-22 16:17:08 -06:00
Jeff Barczewski
105fb02e98 Allow inclusion of stack trace for Assert error messages to be configurable
```javascript
Assertion.includeStack = true;  // enable stack trace to be included on error
```

Default value is false, resulting in less cluttered error results.
Allow user to configure this to true, to see stack trace to where error
occurred.
2012-02-22 14:17:49 -06:00
Jake Luer
67024ae9f5 regex error.message testing 2012-02-07 16:39:08 -05:00
Jake Luer
3d964e5479 tests for using plugins 2012-02-07 16:13:17 -05:00
Jake Luer
d047691134 added assert tests to browser test runner 2012-01-25 16:30:41 -05:00
Vinay Pulim
9a644bfcf4 fix isObject() 2012-01-25 15:33:50 -05:00
Jake Luer
78b5bb429b some tests for assert module 2012-01-21 18:38:18 -05:00
Jake Luer
4ae379d76a test for should (not) exist 2012-01-02 00:48:43 -05:00
Jake Luer
950c066af5 browser uses tdd 2012-01-02 00:45:11 -05:00
Jake Luer
a51dece9a5 convert tests to tdd 2012-01-02 00:45:06 -05:00
Jake Luer
c5e98d484f Release 0.1.4 2011-12-26 13:19:22 -05:00
Jake Luer
c60ad633d1 browser lib update for new assert interface compatiblitiy 2011-12-24 13:20:48 -05:00
Jake Luer
5b78bec84f added should tests to browser 2011-12-24 13:11:09 -05:00
Jake Luer
bb6c5e97e8 new expect empty tests 2011-12-24 13:10:55 -05:00
Jake Luer
a4ca608f45 should test browser compat 2011-12-24 13:10:41 -05:00
Jake Luer
6bf25daf17 code clean 2011-12-18 07:30:59 -05:00
Jake Luer
afb45f033c throw tests 2011-12-18 06:41:13 -05:00
Jake Luer
0165fc068a contain is now include … keys modifier is now contain 2011-12-18 05:56:21 -05:00
Jake Luer
bbdb2a49b1 removed #respondTo 2011-12-18 04:56:48 -05:00
Jake Luer
1c9cbc8ecb added exist test 2011-12-15 15:06:17 -05:00
Jake Luer
4d0a23f2e6 var expect outside of browser if check 2011-12-15 13:19:11 -05:00
Jake Luer
6538dcc16a failing on purpose successful .. back to normal 2011-12-15 08:01:06 -05:00
Jake Luer
e099212192 testing travis failure 2011-12-15 07:59:16 -05:00
Jake Luer
e986a44d33 browser tests expect (all working) 2011-12-15 07:07:35 -05:00
Jake Luer
bc15a19616 chai.fail (should ui) 2011-12-15 07:06:51 -05:00
Jake Luer
18d6180213 expect tests browser compatible 2011-12-15 07:03:47 -05:00
Jake Luer
958661003b tests for should and expect (all pass) 2011-12-15 05:54:37 -05:00
Jake Luer
84734b43cc should compatibility testing 2011-12-15 05:35:17 -05:00