Jeff Welch
4033c14f01
Fixed backwards negation messages.
2013-02-01 23:12:01 -05:00
Jake Luer
02ed69e1d0
Merge pull request #133 from RubenVerborgh/throw
...
Fix assertions on functions that throw primitives
2013-01-28 06:25:55 -08:00
Ruben Verborgh
9bcc5e7f08
Functions throwing strings can reliably be tested.
2013-01-27 20:11:50 +01:00
Jake Luer
70e3593772
Merge pull request #131 from RubenVerborgh/proto
...
Use __proto__ if available
2013-01-21 06:05:05 -08:00
Ruben Verborgh
4b90c17e05
Cache whether __proto__ is supported.
2013-01-19 17:32:34 +01:00
Ruben Verborgh
514dd6ce46
Use __proto__ if available.
2013-01-19 17:30:11 +01:00
Ruben Verborgh
ccb2ac85a4
Determine the property names to exclude beforehand.
2013-01-19 17:28:27 +01:00
Jake Luer
977afb7c34
Merge pull request #126 from RubenVerborgh/eqls
...
Add alias eqls for eql
2013-01-07 10:02:16 -08:00
Ruben Verborgh
7c319f099f
Add alias eqls for eql.
2013-01-07 17:57:03 +01:00
Domenic Denicola
0fe68b021c
Use inherited enumerable properties in deep equality comparison.
...
Fixes #120 .
2012-12-30 06:26:26 -05:00
Domenic Denicola
730a12baa6
Show inherited properties when inspecting an object.
2012-12-30 06:25:17 -05:00
Domenic Denicola
fe45a2d667
Add new getProperties and getEnumerableProperties utils.
2012-12-30 06:24:23 -05:00
Jake Luer
d3de8cb4ed
Release 1.4.2
2012-12-21 15:16:06 -05:00
Jake Luer
64db0cd21c
browser build: (object diff support when used with mocha) #106
2012-12-21 15:02:43 -05:00
Jake Luer
4582d700b0
test: [display] array test for mocha object diff
2012-12-21 15:01:15 -05:00
Jake Luer
bc71605462
browser: no longer need different AssertionError constructor
2012-12-21 15:00:57 -05:00
Jake Luer
4279bca19b
Release 1.4.1
2012-12-21 12:56:20 -05:00
Jake Luer
49a4655173
showDiff: force diff for equal and eql. #106
2012-12-21 12:50:04 -05:00
Jake Luer
3aa71e77cf
test: [expect] type null. #122
2012-12-15 15:08:30 -05:00
Jake Luer
999ca70923
Merge pull request #115 from eshao/fix-assert-Throw
...
FIX/TST: assert.Throw should check error type/message
2012-11-30 11:47:22 -08:00
Edwin Shao
cdcca4f5f6
FIX: assert.Throw checks error type/message
2012-11-30 19:39:41 +08:00
Edwin Shao
f438d37e44
TST: assert.Throw should check error type/message
...
Currently, assert.Throw will not take into account the expected
error type or message passed in. Write tests to document this.
2012-11-30 19:37:12 +08:00
Jake Luer
b2642cfb80
Release 1.4.0
2012-11-29 03:26:55 -05:00
Jake Luer
a3e036ae43
pre-release browser build
2012-11-29 03:20:08 -05:00
Jake Luer
0b8fff789f
clean up index.js to not check for cov, revert package.json to use index.js
2012-11-29 03:19:45 -05:00
Jake Luer
86fe576d56
convert tests to use new bootstrap
2012-11-29 03:18:48 -05:00
Jake Luer
5e07b04fdb
refactor testing bootstrap
2012-11-29 03:18:25 -05:00
Jake Luer
220aa88386
use spaces (not tabs). Clean up #114
2012-11-29 03:17:26 -05:00
Jake Luer
d6d41a5259
Merge pull request #114 from trantorLiu/master
...
Add most() and least() to the API
2012-11-28 23:05:19 -08:00
Chun-Yi
0422f071a4
Add most() (alias: lte) and least() (alias: gte) to the API with new chainers "at" and "of".
...
The new chainers can be used with least() and most().
Examples:
expect(5).to.be.at.least(5);
(5).should.be.at.most(5);
expect([1, 2]).to.have.length.of.at.least(2);
2012-11-29 11:55:57 +08:00
Domenic Denicola
8fadc4b0a1
Change main
to ./lib/chai. Fixes #28 .
2012-11-26 16:40:46 -05:00
Jake Luer
0ce651c776
Merge pull request #104 from connec/deep_equals_circular_references
...
Added support (and tests) for circular references when checking deep (in)equality.
2012-11-18 10:09:47 -08:00
Jake Luer
46729a86bc
Merge pull request #109 from nnarhinen/patch-1
...
Check for 'actual' type
2012-11-16 05:07:54 -08:00
Niklas Närhinen
24d4991194
Check for 'actual' type
...
At least on Node.js actual property isn't correctly populated because of strict string comparison.
2012-11-16 09:50:30 +02:00
Chris Connelly
3d05feee32
Added support for circular references when checking deep (in)equality.
2012-10-21 22:15:49 +01:00
Jake Luer
8788025362
Release 1.3.0
2012-10-01 17:32:20 -04:00
Jake Luer
f41bf37773
browser build w/ folio >= 0.3.4. Closes #99
2012-10-01 16:35:56 -04:00
Jake Luer
d9758753a2
add back buffer test for deep equal
2012-10-01 16:14:32 -04:00
Jake Luer
ac52bd12b3
do not write flags to assertion.prototype
2012-10-01 16:13:57 -04:00
Jake Luer
a2e8d2ce0f
remove buffer test from expect
2012-10-01 15:31:54 -04:00
Jake Luer
3b0e26f4b8
browser build
2012-10-01 15:17:42 -04:00
Jake Luer
beeeac2da5
improve documentation of custom error messages
2012-10-01 15:13:34 -04:00
Jake Luer
ca18882362
Merge branch 'master' of git://github.com/Liffft/chai into Liffft-master
...
* 'master' of git://github.com/Liffft/chai:
Cleaning up the js style…
expect tests now include message pass-through
packaging up browser-side changes…
Increasing Throws error message verbosity
Should syntax: piping message through
Conflicts:
test/expect.js
2012-10-01 15:06:24 -04:00
Jake Luer
ff3bbc22d4
browser build
2012-10-01 14:47:35 -04:00
Jake Luer
9dd85eabd3
improved buffer deep equal checking
2012-10-01 14:47:21 -04:00
Jake Luer
2c4828932d
mocha is npm test command
2012-10-01 14:46:34 -04:00
Scott Nonnenberg
00b2ed3840
Cleaning up the js style…
...
I've been writing too much coffeescript!
2012-09-05 11:24:27 -07:00
Scott Nonnenberg
d6bbc5fddd
expect tests now include message pass-through
2012-09-05 11:13:14 -07:00
Scott Nonnenberg
57a6e04df6
packaging up browser-side changes…
...
(tests passing in Chrome 21.0.1180.89 and Firefox 15. Safari 6.0 (7536.25) passes all tests except for the three includeStack tests.
2012-09-05 02:19:04 -07:00
Scott Nonnenberg
941f992a26
Increasing Throws error message verbosity
...
'cause we actually want to know what was thrown.
2012-09-04 23:13:44 -07:00