Joshua Perry
dd51594075
More unit tests for new utility functions
2014-11-21 12:27: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
c4b0d18829
Small unit test fix
2014-11-18 17:25:39 -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
David da Silva
edef912f41
why not more assertions
2014-11-01 20:24:59 +01:00
David da Silva
627e4b0096
added test for inspecting -0
2014-11-01 20:19:27 +01:00
Jake Luer
834fd5b0dd
Merge pull request #268 from charlierudolph/cr-lazyMessages
...
Allow messages to be functions
2014-09-29 18:18:25 -04:00
Jake Luer
3e692e6d04
Merge pull request #279 from mohayonao/fix-closeTo
...
fix: closeTo should check value's type before assertion
2014-09-29 18:15:53 -04:00
Christopher Hiller
6d6f03d2d2
resolves #255 : upgrade mocha
2014-09-11 22:54:56 -07:00
mohayonao
11fe70ef82
assert: .closeTo() verify value's type before assertion
2014-07-16 09:50:45 +09:00
charlierudolph
216ad26aa1
Allow messages to be functions
2014-06-08 14:00:42 -07:00
Jake Luer
1df11d0027
util: [getActual] select actual logic now allows undefined for actual. Closes #183
2014-03-18 09:35:43 -04:00
Roman Masek
9e5f9ffd3b
Fix issue #166 - configurable threshold in objDisplay.
2014-03-18 08:20:15 +01:00
Roman Masek
7dd05e3b7a
Move configuration options to config.js.
2014-03-18 08:18:11 +01:00
Jake Luer
07b34c7b49
Merge pull request #233 from Empeeric/master
...
ssfi as it should be
2014-02-25 12:43:59 -05:00
leider
cb910afc52
additional test finds incomplete implementation
2014-02-09 14:41:03 +01:00
leider
7352fdeec7
fixing #239 (without changing chai.js)
2014-02-09 13:31:45 +01:00
Refael Ackermann
62d9ceb208
ssfi as it should be
2014-01-30 10:23:19 +02:00
Duncan Beevers
ec62443b7c
Deep equality check for collection membership
2014-01-29 19:08:16 -06:00
Jake Luer
c3c1fccc2d
assert: .throws() returns thrown error. Closes #185
2014-01-29 17:22:29 -05:00
Jake Luer
b01eba75c9
assert: .fail() parameter mismatch. Closes #206
2014-01-29 16:23:04 -05:00
Veselin
a01e40b2cc
Merge pull request #230 from jkroso/include
...
support `{a:1,b:2}.should.include({a:1})`
2014-01-27 07:11:45 -08:00
Veselin Todorov
764d00e73c
Remove jscoverage
2014-01-26 08:38:49 +02:00
Jake Rosoman
acbf04dad2
handle negation correctly
2014-01-05 15:26:33 +13:00
Jake Rosoman
75bb2b68f6
add failing test case
2014-01-05 14:33:52 +13:00
Jake Rosoman
2715e95abc
support {a:1,b:2}.should.include({a:1})
2014-01-05 14:10:14 +13:00
Veselin Todorov
f3ebb09a58
Merge pull request #224 from vbardales/master
...
Return error on throw method to chain on error properties
2014-01-02 10:50:25 -08:00
Virginie BARDALES
2bb0ff2ab7
return error on throw method to chain on error properties, possibly different from message
2013-12-19 10:23:46 +01:00
Max Edmands
2127525933
util: add overwriteChainableMethod utility (for #215 )
2013-11-30 09:31:06 -08:00
Max Edmands
4ce3d420e2
test: make it possible to run utilities tests with --watch
2013-11-28 13:54:17 -08:00
Andrei Neculau
b1c7d710a4
test: add tests for throwing custom errors
2013-10-23 23:48:48 +02:00
Andrei Neculau
e174212d0f
test: updated for the new assertion errors
2013-10-23 23:06:39 +02:00
Jake Luer
8a2e00b486
test: [sauce] use karma@canary to prevent timeouts
2013-09-17 23:12:16 -04:00
Jake Luer
a8f94bdcbb
test: [karma] use karma phantomjs runner
...
- tests refactored as bdd instead of tdd
- removed test/browser bootstraps
- add karma-runner
2013-09-17 17:22:36 -04:00
Jake Luer
7bc580910e
core: [assertion-error] replace internal assertion error with dep
2013-06-17 15:27:50 -04:00
Domenic Denicola
7c72e673f4
Fix utils.inspect
with custom object-returning inspect()s.
...
This code is lifted from the latest node utils.js: 896b2aa707/lib/util.js (L205-L209)
Without it, if an object contains another object whose custom `inspect()` method returns a non-string, `utils.inspect` gets confused and tries to do `nonString.indexOf`.
This fixes domenic/chai-as-promised#32 , where Chai as Promised was trying to call `utils.inspect` on an `AssertionError` which contained as its "actual" property a Q promise. Since Q promises have custom `inspect` methods that return objects, not strings, this was triggered.
2013-06-13 23:12:58 -04:00
Bartvds
774a723bff
replaced tabs with 2 spaces
2013-06-09 01:31:26 +02:00
Bartvds
080702ac87
added assert.notOk()
2013-06-08 18:16:44 +02:00
George Kats
044dcff68d
Fix comparison objects.
...
Regexp and Date objects can to be deep equal to objects with the same type.
2013-06-06 00:53:34 +03:00
George Kats
2c4da4a91a
Add test for different RegExp flags.
2013-06-05 23:26:42 +03:00
George Kats
f62eb19a66
Add test for regexp comparison.
2013-06-05 02:14:53 +03:00
Jake Luer
019bb07637
assert: [(not)include] throw on incompatible haystack. Closes #142
2013-04-29 19:30:51 -04:00
Jake Luer
8f8d7425a5
assert: [notInclude] add assert.notInclude. Closes #158
2013-04-29 19:03:53 -04:00
Jake Luer
30784962da
Merge branch 'master' of github.com:chaijs/chai
...
* 'master' of github.com:chaijs/chai:
giving members a no-flag assertion
Code review comments - changing syntax
Code review comments
Adding members and memberEquals assertions for checking for subsets and set equality. Implements chaijs/chai#148 .
Restore the `call` and `apply` methods of Function when adding a chainable method.
2013-04-29 17:18:34 -04:00
Jake Luer
e5e3a4fa42
test: [assert] deep equal ordering
2013-04-29 17:18:22 -04:00
Nick Heiner
244fa51336
giving members a no-flag assertion
2013-04-23 11:12:23 -04:00
Nick Heiner
22e2a78a4e
Code review comments - changing syntax
2013-04-14 19:07:12 -04:00
Nick Heiner
078da00be3
Adding members and memberEquals assertions for checking for subsets and set equality. Implements chaijs/chai#148 .
2013-04-14 17:58:07 -04:00