Jake Luer
ff9005caa8
Merge branch 'feature/showDiff'
...
* feature/showDiff:
test: [Assertion] configruable showDiff flag. Closes #132
lib: [Assertion] add configurable showDiff flag. #132
showDiff: force true for equal and eql
Conflicts:
lib/chai/assertion.js
test/display/message.js
2013-02-03 13:27:38 -05:00
Jake Luer
f5cf2c2f5a
lib: [Assertion] add configurable showDiff flag. #132
2013-02-03 13:25:24 -05:00
Jake Luer
e619f98999
Merge pull request #136 from whatthejeff/message_fix
...
Fixed backwards negation messages.
2013-02-02 16:06:19 -08:00
DD
91d2805393
Fix issue #137 , test message existence by using message!=null rather than using message
2013-02-03 00:49:48 +08:00
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
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
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
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
972258cdff
showDiff: force true for equal and eql
2012-12-21 12:47:29 -05:00
Edwin Shao
cdcca4f5f6
FIX: assert.Throw checks error type/message
2012-11-30 19:39:41 +08:00
Jake Luer
b2642cfb80
Release 1.4.0
2012-11-29 03:26:55 -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
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
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
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
9dd85eabd3
improved buffer deep equal checking
2012-10-01 14:47:21 -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
941f992a26
Increasing Throws error message verbosity
...
'cause we actually want to know what was thrown.
2012-09-04 23:13:44 -07:00
Scott Nonnenberg
e383a6ece8
Should syntax: piping message through
2012-09-04 23:10:25 -07:00
Domenic Denicola
1024e2dd14
Add a setter for Object.prototype.should
. Closes #86 .
2012-08-24 20:28:13 -04:00
Jake Luer
35bec1b896
Release 1.2.0
2012-08-07 01:05:25 -04:00
Jake Luer
a83c7772e0
comment updates for utilities
2012-08-07 00:57:59 -04:00
Jake Luer
7ce5e9347e
tweak objDislay to only kick in if object inspection is too long
2012-08-07 00:57:38 -04:00
Jake Luer
dc6c5533eb
first draft of error message refactor. #93
2012-08-01 21:05:25 -04:00
Jake Luer
19fe54399b
add closeTo
assertion to assert
interface. Closes #89 .
2012-08-01 20:21:52 -04:00
Paul Miller
6b66ce72dd
Add check for DOM objects.
2012-07-28 03:27:38 +03:00
Jake Luer
e6d69c36e4
Merge branch 'master' of github.com:chaijs/chai
2012-07-26 14:12:23 -04:00
Jake Luer
4e3c89a14d
bug - getActual not defaulting to assertion subject
2012-07-26 14:11:43 -04:00
Victor Costan
f269726e9c
Don't inspect() assertion arguments if the assertion passes.
2012-07-19 02:09:14 -07:00
Jake Luer
b7aae4601f
Release 1.1.1
2012-07-09 12:49:18 -04:00
Teddy Cross
ddfea9575b
Document .equals
...
Not sure why it decided to move error.js around. Oh well?
2012-07-07 14:47:28 -04:00
Teddy Cross
45e458067a
Add .equals as an alias of .equal
2012-07-07 13:49:18 -04:00
Jake Luer
456ee6ad83
Release 1.1.0
2012-06-26 14:32:49 -04:00
Domenic Denicola
79c3654691
Use utils.getName
for all function inspections.
...
This makes the `respondTo` tests pass in IE, where functions don't themselves have a `name` property.
2012-06-26 12:30:25 -04:00
Kilian Ciuffolo
da2bbbf666
fixes #79
2012-06-26 13:41:15 +02:00