Commit graph

1382 commits

Author SHA1 Message Date
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
f20c7b5b01 isTypedArray verification 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
Tristan Patch
a1190c9256 Deep members comparisons show diff. 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
Lucas Fernandes da Costa
e5e6f5cbbd Merge pull request #782 from not-an-aardvark/did-you-mean
Add fix suggestions when accessing a nonexistent property in proxy mode
2016-09-08 09:17:39 -03: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
10cacc59be More docs updates 2016-09-01 13:00:43 -07: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
05c37febfc Fix typo on docs for the inspect utility 2016-08-31 19:42:34 -03:00
lucasfcosta
0c06de5a80 Add proxyExcludedKeys config setting. Closes #765 2016-08-31 19:42:15 -03:00
Grant Snodgrass
93905a7441 Merge pull request #778 from lucasfcosta/improve-exist-assertion
Improve exist assertion (Triple equals and addition to assert interface)
2016-08-30 14:17:12 +08:00
Grant Snodgrass
1b037390ba Merge pull request #776 from gregglind/775-no-redeclare
Fix #775
2016-08-30 13:32:34 +08: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
Gregg Lind
02725b3b13 Fix #775 - linting for redeclared vars 2016-08-25 10:05:39 -05:00
lucasfcosta
481b6306ab Fix backtick which should have been an apostrophe 2016-08-23 18:16:22 -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
Lucas Fernandes da Costa
d4e8a4aee5 Merge pull request #757 from meeber/nested-property
Breaking: Rename `.deep.property` to `.nested.property`
2016-08-14 13:41:37 -03:00
Lucas Fernandes da Costa
77ba5eb5a2 Merge pull request #744 from meeber/not-property
Breaking: Change `.not.property(name, val)` behavior
2016-08-14 13:40:43 -03:00
Grant Snodgrass
87c3be598f Merge pull request #768 from vieiralucas/patch-1
Fix indentation of includeStack at config
2016-08-12 07:25:46 -04:00
Lucas Vieira
fbc08adf32 Fix indentation of includeStack at config 2016-08-11 23:44:26 -03:00
Keith Cirkel
fbb4a4e085 Merge pull request #762 from chaijs/greenkeeper-mocha-3.0.0
Update mocha to version 3.0.0 🚀
2016-08-01 12:14:38 +01:00
greenkeeperio-bot
ece6e24ad9 chore(package): update mocha to version 3.0.0 2016-08-01 06:17:26 +01: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
43a64c4a1d Merge pull request #750 from shvaikalesh/patch-1
Fix new Promise example
2016-07-10 02:06:02 +01:00
Aleksey Shvayka
3f361c7838 Fix new Promise example 2016-07-10 00:12:33 +03: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
Keith Cirkel
387dca2320 Merge pull request #742 from lucasfcosta/throws-polishment-assert-interface
Throws polishment assert interface
2016-06-27 09:55:51 +01:00
lucasfcosta
3a8f622de8 Improve docStrings about strict or not comparisons for throws assertion 2016-06-26 20:29:49 -03:00
lucasfcosta
9375d85081 Improve handling for empty Strings on throws assertion 2016-06-26 20:06:11 -03:00
Keith Cirkel
9b9d979ef6 Merge pull request #740 from lucasfcosta/fix-throws-getConstructorName-tests
Fix tests for .throws using getConstructor name instead of .name prop
2016-06-25 23:10:20 +01:00
lucasfcosta
db1faba456 Throws assertion polishments for Assert interface 2016-06-25 17:21:05 -03:00