Commit graph

351 commits

Author SHA1 Message Date
Lucas Fernandes da Costa
662b76c82d Merge pull request #796 from vieiralucas/verify-type-round2
Verify types on increase | decrease
2016-09-12 15:01:45 -03:00
Lucas Vieira
c802d38dbe Add tests that ensure assert.atMost and assert.atLeast are checking type 2016-09-10 17:01:26 -03:00
Lucas Vieira
43b22c8fac Verify types on increase | decrease 2016-09-10 17:00:13 -03:00
Grant Snodgrass
e24b66ee49 Fix broken tests when using Node v6.5 2016-09-10 15:06:03 -04:00
Grant Snodgrass
4a009decbf Fix broken test after rebasing 4.x.x branch 2016-09-08 09:37:23 -04:00
Lucas Vieira
c3e828534b Verify types on within and related assertions 2016-09-08 09:37:23 -04:00
lucasfcosta
df1a89241b ownProperty assertions on Assert interface 2016-09-08 09:37:22 -04:00
lucasfcosta
16101af347 Assertion subject (obj) changes when using ownProperty assertion 2016-09-08 09:37:22 -04:00
lucasfcosta
01189490bd Truncate typedArrays according to their string representation 2016-09-08 09:37:22 -04:00
lucasfcosta
4d314b614b Fix truncateThreshold 2016-09-08 09:37:22 -04:00
lucasfcosta
aae52f2f42 Minor inspect code style fixes 2016-09-08 09:37:22 -04:00
lucasfcosta
b90ba4e5a0 Truncate long typedArray 2016-09-08 09:37:22 -04:00
lucasfcosta
8123bf778c formatTypedArray function 2016-09-08 09:37:22 -04:00
lucasfcosta
0a8869643c New showDiff behaviour also depending on expected and actual values 2016-09-08 09:37:22 -04:00
Whitney Young
04aa795b73 No longer silently allowing undefined method calls. Fixes #467. 2016-09-08 09:37:22 -04:00
Sakthipriyan Vairamani
d2884a6baa handle NaN properly in assertions
Fixes: #498
2016-09-08 09:37:22 -04:00
Dai
128c1126ac Updated code based on discussion 2016-09-08 09:37:22 -04:00
Dai
e0ee3def23 Added handling for undefined and null (fails on negate flag too) 2016-09-08 09:37:22 -04:00
not-an-aardvark
e8085b0ad8
Add fix suggestions when accessing a nonexistent property in proxy mode
fixes #771
2016-09-07 21:34:29 -04:00
Keith Cirkel
d521ed8f18 Merge pull request #779 from TheSavior/is-finite
Adding `.finite`. Fixes #271
2016-09-02 17:30:52 +01:00
Eli White
f26e415be5 Use a property assertion and update tests 2016-09-01 20:55:09 -07:00
Grant Snodgrass
a42586e494 Merge pull request #774 from lucasfcosta/configurable-blacklist
Configurable proxy blacklist
2016-09-02 09:45:32 +08:00
Eli White
754bd2415d Adding tests for should. Fixing comment 2016-09-01 12:57:30 -07:00
Eli White
9d914143fc Adding .finite. Fixes #271 2016-09-01 10:34:58 -07:00
lucasfcosta
0c06de5a80 Add proxyExcludedKeys config setting. Closes #765 2016-08-31 19:42:15 -03:00
lucasfcosta
374f405527 Exist assertion on the assert interface 2016-08-26 21:16:35 -03:00
lucasfcosta
e731740d5c Exist assertion using triple equals and minor style fixes for it 2016-08-26 21:02:27 -03:00
Keith Cirkel
49ed210e6f Merge pull request #761 from meeber/deep-include
Add `.deep.include` for deep equality comparisons
2016-08-16 21:04:56 +01:00
Lucas Fernandes da Costa
70d8fe2f4b Merge pull request #760 from meeber/fix-include
Breaking: Fix `.include` to always use strict equality
2016-08-15 15:39:51 -03:00
Lucas Fernandes da Costa
dcd5524d8a Merge pull request #758 from meeber/deep-property
Add `.deep.property` for deep equality comparisons
2016-08-15 15:36:58 -03:00
Lucas Fernandes da Costa
0662b7bafa Merge pull request #770 from vieiralucas/optional-proxy
Make proxies optional
2016-08-15 15:35:41 -03:00
Lucas Vieira
0f34cb50a5 Make proxies optional 2016-08-15 13:18:28 -03:00
Grant Snodgrass
7d1dd301c1 Add .deep.include for deep equality comparisons 2016-08-14 16:08:09 -04:00
Grant Snodgrass
38739f45fd Breaking: Fix .include to always use strict equality
- Previously, `.include` was using strict equality for non-negated property
inclusion, but deep equality for negated property inclusion and array
inclusion. This fix causes `.include` to always use strict equality.
2016-08-14 16:07:22 -04:00
Grant Snodgrass
6d6bf60dba Add .deep.property for deep equality comparisons 2016-08-14 16:07:22 -04:00
Grant Snodgrass
a5a90cbd9f Add .deep.property for deep equality comparisons 2016-07-25 20:45:08 -04:00
Grant Snodgrass
92768fd0da Breaking: Rename .deep.property to .nested.property
- Previously, the `deep` flag had unexpected behavior when used with the
`property` assertion: Instead of switching from strict to deep equality,
it unlocked the ability to use dot and bracket notation when referencing
property names. This behavior now belongs to the new `nested` flag.
- assert.deepProperty renamed to assert.nestedProperty
- assert.notDeepProperty renamed to assert.notNestedProperty
- assert.deepPropertyVal renamed to assert.nestedPropertyVal
- assert.notDeepPropertyVal renamed to assert.notNestedPropertyVal
2016-07-25 18:59:01 -04:00
Grant Snodgrass
576489a3be Breaking: Change .not.property(name, val) behavior
- Previously, `expect(obj).not.property(name, val)` would throw an Error
if `obj` didn't have a property named `name`. This change causes the
assertion to pass instead.
- assert.propertyNotVal renamed to assert.notPropertyVal
- assert.deepPropertyNotVal renamed to assert.notDeepPropertyVal
2016-07-24 19:52:01 -04:00
Keith Cirkel
cc7799c416 Merge pull request #739 from meeber/duplicate-members
Fix duplicate handling in members assertion
2016-06-27 09:58:39 +01:00
lucasfcosta
9375d85081 Improve handling for empty Strings on throws assertion 2016-06-26 20:06:11 -03:00
lucasfcosta
db1faba456 Throws assertion polishments for Assert interface 2016-06-25 17:21:05 -03:00
Grant Snodgrass
3fdb5423e7 Fix duplicate handling in members assertion 2016-06-24 20:50:16 -04:00
Grant Snodgrass
d0972d2999 Throw when non-existent property is read 2016-06-24 09:39:49 -04:00
Keith Cirkel
d08002ed88 Merge pull request #683 from lucasfcosta/throw-using-checkerror
Throw using checkError module
2016-06-24 10:12:13 +01:00
Grant Snodgrass
adf2b6cf78 Add ordered flag for members assertions 2016-06-12 13:32:50 -04:00
Grant Snodgrass
a1c5ff74c7 Fix chai.use as ES6 named export 2016-06-09 17:50:32 -04:00
lucasfcosta
b9436a9e56 Refactor throw to use checkError module 2016-06-08 20:29:45 -03:00
Grant Snodgrass
16ef15b4ad Fix failing tests in IE 10 and 11 2016-05-15 09:52:39 -04:00
Lucas Vieira
7429954e9e Add .does as a no-op assertion, Fix #700 2016-05-07 01:12:08 -03:00
Lucas Vieira
60b03bc61e Add tests for no-ops chains 2016-05-07 01:12:02 -03:00