eldritch fossicker
57ef36621f
fix indexing into array with deep propery
...
* added unit test to expect with code from documentation
* added default to res in _getPathValue
2015-03-02 14:00:46 -06:00
Keith Cirkel
062d731762
Merge pull request #382 from astorije/patch-2
...
Add missing docstring for showDiff argument of assert
2015-03-01 11:03:33 +00:00
Vlad GURDIGA
be8d7a69ba
config.truncateThreshold docs: simpler wording
2015-03-01 12:53:44 +02:00
Jérémie Astori
592be870e8
Add missing docstring for showDiff argument of assert
2015-02-28 18:02:38 -05:00
Jérémie Astori
d080d1a6a4
Add a minor precision that empty asserts on strings too.
2015-02-28 00:50:35 -05:00
Doug Neiner
ef04544328
Primitives now use valueOf in shouldGetter
...
This allows the should syntax to be more resilient when
dealing with modified primitive constructors which
may occur more frequently with ES6 to ES5 transpilation.
2015-02-24 12:09:14 -06:00
Keith Cirkel
ee5d666059
Release v2.1.0
2015-02-23 21:05:04 +00:00
Jesse McCarthy
a8ffb9c152
Increment version to 2.0.1.
...
See https://github.com/chaijs/chai/issues/373
2015-02-23 11:19:51 -05:00
Keith Cirkel
9b25d0c524
Merge pull request #356 from Soviut/master
...
Added fail() method to Should and Expect interfaces
2015-02-10 23:41:58 +00:00
Ian Zamojc
ffd7c190e4
documented fail methods for expect and should interfaces
2015-02-10 18:39:39 -05:00
Ian Zamojc
c2f9e430d9
fail method added directly to expect
2015-02-10 16:50:31 -05:00
Gregg Lind
4f40b37356
fix #359 . Add `.keys(object)
...
- `.keys(object)n => .keys(Object.keys(Object)`
- added exceptions for 'if first arg is non-string, then it must be only
arg. => `.keys(Array|Object, ...)`
Warning: `Object.keys` must exist on systems to use this functionality.
2015-02-09 09:16:01 -06:00
Gregg Lind
68f3c02f07
Fix #359 keys() sorts input unexpectedly
2015-02-05 19:36:09 -06:00
Ian Zamojc
61d8718c69
added fail() method to expect interface
2015-01-30 16:00:47 -05:00
Ian Zamojc
41b158720b
changed default message for should.fail()
2015-01-30 16:00:47 -05:00
Ian Zamojc
d353bf7bc5
added should.fail() method
2015-01-30 16:00:46 -05:00
toastynerd
498fe95126
add the which chain method as per issue #347
2015-01-22 09:07:59 -08:00
Keith Cirkel
5fc486b573
Merge pull request #333 from cmpolis/change-assertions
...
Added `change`, `increase` and `decrease` assertions with `by` chain (#330 )
2015-01-02 19:08:10 +00:00
Chris Polis
a6692349c5
more by
cleanup
2015-01-02 10:16:25 -08:00
Chris Polis
051fd95d88
cleaned out .by
for #333
2015-01-02 10:13:44 -08:00
Michael Lange
ebcfd87a0e
Expose chai util through the chai object
...
The chai util object has a lot of useful functions that can be used
outside of the context of assertions.
2014-12-30 13:19:45 -08:00
Chris Polis
581cf83b11
cleanup (per notes on pr #333 )
2014-12-29 09:47:32 -08:00
Chris Polis
cb1c33b5d8
updated change
to work w/ non-number values + tests
2014-12-29 09:45:25 -08:00
Adam Hull
0eb70e1955
Typo, the flag is called 'contains' with an 's'
2014-12-28 22:16:17 -05:00
Chris Polis
647e49c8e4
updated assertion interface with change
( #330 )
2014-12-27 17:52:50 -08:00
Chris Polis
34576803ec
added change
,increase
,decrease
assertions ( #330 )
2014-12-27 17:43:27 -08:00
Mathias Schreck
061c79051a
Add includes and contains alias ( fixes #327 )
2014-12-24 17:53:04 +01:00
Chasen Le Hara
24735f14b7
Fix docs for overwriteChainableMethod parameters
2014-12-14 21:42:45 -08:00
Keith Cirkel
874ac20541
Merge pull request #317 from jasonkarns/patch-2
...
minor docs typo
2014-12-09 21:04:27 +00:00
Keith Cirkel
2aa6eb6392
Merge pull request #318 from jasonkarns/patch-3
...
typos in docs
2014-12-09 21:04:15 +00:00
Jason Karns
9db0626783
typos in docs
2014-12-09 09:12:22 -05:00
Jason Karns
d2c4c3f79d
minor docs typo
2014-12-09 09:11:06 -05:00
Jason Karns
7ee2c18cf7
update docs: getAllFlags -> transferFlags
...
Documentation was out of date
2014-12-09 09:09:07 -05:00
Chris Jones
e0e06082ea
Added the all and any flags for keys assertion, with all being the default behavior
...
Extended keys documentation and set bools instead of changing flags in the keys assertion
Miswrote in keys documentation, corrected mistake
Edited documentation for keys to better match how it interacts with contains and have
2014-12-03 18:00:42 -05:00
Chris Jones
0d814eb6f2
Changed public comment of sameDeepMemebers to be more clear
2014-12-02 19:38:07 -05:00
Chris Jones
e3e170d3e0
Fixes issue #291 , adds assert.sameDeepMembers
2014-12-02 19:38:07 -05:00
Keith Cirkel
49e003c1f2
Merge pull request #311 from cjqed/305-above-below-on-assert
...
Issue #305 fixed, added assert.isAbove and assert.isBelow
2014-12-02 22:56:11 +00:00
Keith Cirkel
7de269af35
Merge pull request #308 from prodatakey/hasproperty
...
Fix properties with `undefined` value pass property assertion
2014-12-02 22:55:14 +00:00
Chris Jones
e8e8caf4c2
Issue #305 fixed, added assert.isAbove and assert.isBelow
2014-11-29 01:52:00 -05:00
Joshua Perry
414dea2881
Fix typo
2014-11-21 15:07:26 -07:00
Joshua Perry
2d22f4534e
Refactor common functionality, document, test
2014-11-20 16:48:56 -07:00
Joshua Perry
8cdb7b1d76
Refactor if statement out
2014-11-18 17:42:30 -07:00
Joshua Perry
7d466b2d37
Handle array indexing terminating paths
2014-11-18 17:18:00 -07:00
Joshua Perry
32826c06df
Fix properties with undefined
value pass property assertion
2014-11-15 16:29:57 -07:00
Keith Cirkel
b826feba51
Revert "Allows writing lint-friendly tests"
2014-11-13 11:58:50 +00:00
Jake Luer
c8b3208ce4
Release 1.10.0
2014-11-10 09:06:08 -05:00
Keith Cirkel
828f48148f
Merge pull request #297 from prodatakey/noopchainfunc
...
Allows writing lint-friendly tests
2014-11-10 09:44:19 +00:00
Joshua Perry
c448e1de7c
Revise documentation wording
2014-11-05 07:25:26 -07:00
Joshua Perry
bbd3aafbe5
Add docs for function style NOOP asserts
2014-11-04 10:27:43 -07:00
Joshua Perry
9142ce0cfd
Make the NOOP function a shared constant
2014-11-04 09:25:31 -07:00