Commit graph

709 commits

Author SHA1 Message Date
lucasfcosta
bc7c19f006 Fix tests for .throws using getConstructor name instead of .name prop 2016-06-25 14:06:16 -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
Aleksey Shvayka
3151347f01 Fix typo in hasProperty 2016-06-08 17:35:07 +03:00
Jérémie Astori
27de3a734b Fix minor typo in the docstring of property 2016-05-29 19:00:35 -04:00
Grant Snodgrass
16ef15b4ad Fix failing tests in IE 10 and 11 2016-05-15 09:52:39 -04:00
Aleksey Shvayka
e67f9df7fb Make constructors syntax consistent 2016-05-12 15:30:07 +03:00
pgarrison
e5ac890014 .members should show diff 2016-05-10 13:21:43 -04:00
Lucas Vieira
7429954e9e Add .does as a no-op assertion, Fix #700 2016-05-07 01:12:08 -03:00
Eduard Bardají Puig
63ab713c15 Fix ownProperty on objects with no prototype 2016-04-24 18:20:36 -07:00
Tomáš Polomský
bdd558e43f Fix failure when custom inspect method is used
When custom inspect method is used and this method calls stylize test crashes.
Stylize method is documented for Node.js 4.x and 5.x.
2016-04-17 14:27:06 +02:00
meeber
e22835116c Fix bug when asserting some valid ES6 keys
- Resolution of https://github.com/chaijs/chai/issues/674
- Add compareByInspect utility for use with assertKeys sorts
- Add getOwnEnumerableProperties utility
- Add getOwnEnumerablePropertySymbols utility
- Add Symbol support to the inspect utility
- Add tests to utilities, should, expect, and assert
2016-04-11 13:40:34 -04:00
lucasfcosta
bfcc2d69e1 fail method on Should and Expect interfaces now has BDD as namespace. Closes #487 2016-04-08 16:48:15 -03:00
meeber
e380173aed Fix bug when testing Symbol equality with should syntax (#669) 2016-04-08 06:17:30 -04:00
lucasfcosta
6eef212572 Add but to the list of language chains 2016-04-06 18:09:37 -03:00
brutalcrozt
fe01abd1d4 add compatibility with strict mode 2016-04-06 09:26:18 +07:00
Tobias Bieniek
1d8c3d9856 overwriteMethod: Fix "ssfi" flag overwriting 2016-04-04 13:27:24 +02:00
Tobias Bieniek
cceadf6d82 overwriteProperty: Fix "ssfi" flag overwriting 2016-04-04 13:27:24 +02:00
Tobias Bieniek
be8189c1ad Remove unnecessary config checks
config.includeStack is already checked by the assert() function
2016-04-04 13:27:24 +02:00
Tobias Bieniek
2fd19ca89f addMethod: Prevent unnecessary transferFlags() calls 2016-03-31 18:45:11 +02:00
Tobias Bieniek
218dd94791 addProperty: Prevent unnecessary transferFlags() calls 2016-03-31 18:09:35 +02:00
Tobias Bieniek
49697a6691 addMethod/addProperty: Fix missing require() calls 2016-03-31 18:07:16 +02:00
Jesús Leganés Combarro
85fb7a6583 deepStrictEqual
Added `deepStrictEqual` as an alias for `deepEqual`
2016-03-31 13:21:47 +02:00
Keith Cirkel
bf1e0bff33 Merge pull request #633 from lucasfcosta/keys-for-maps-and-sets
Keys for maps and sets
2016-03-27 23:28:11 +01:00
lucasfcosta
8f8f186058 Simplify adding language chains with a check for the getter argument 2016-03-20 16:14:49 -03:00
lucasfcosta
1028fd2de6 addMethod returns a new assertion with flags copied over instead of this 2016-03-20 16:14:48 -03:00
lucasfcosta
c654360e68 Keys assertions on assert interface (and tests) 2016-03-09 19:48:28 -03:00
lucasfcosta
f286e0e6b3 Keys assertion can operate on Maps and Sets 2016-03-09 19:48:28 -03:00
Chris Clayman
ce45a9ff28 Fixed JsDoc spelling of Object.freeze() in .isNotExtensible() assertion. 2016-02-25 15:48:38 -08:00
lucasfcosta
8e8a728921 by assertion (a.k.a. assertDelta) implementation 2016-02-22 17:17:38 -03:00
lucasfcosta
25359ebf59 Improve property checks for change related assertions 2016-02-22 17:17:38 -03:00
lucasfcosta
877acb52dd Rename change related assertions obj argument to target 2016-02-22 17:17:37 -03:00
Steven Peng
c3f3e94cc5 Convert keys to strings 2016-02-16 21:07:32 -08:00
Dinos Theodorou
e2296e2400 Correct documentation for .throw() 2016-02-14 22:27:40 +01:00
lucasfcosta
e778cee15d Code style fixes related to function for value on inc, dec and changes 2016-02-11 18:56:29 -02:00
lucasfcosta
f158523321 Increases and Decreases assertions accepting function for value 2016-02-11 18:56:29 -02:00
lucasfcosta
0fe471885c Change accepts a function as object 2016-02-11 18:56:29 -02:00
Whitney Young
78f484a3f4 Update include assertion docs for object properties
Originally added in #230, asserting that an object contains a subset of
properties and values was never documented. Questions like #193 have
popped up asking for this feature even though it's been present since
1.9.0.

The discussion in #193 focused mostly around getting something like
this to work via the `property` assertion, but that discussion should
be considered moot by the existing functionality already present in
`include` that was simply overlooked.

Resolves: #193
2016-02-07 22:02:33 -07:00
lucasfcosta
28f7397fd0 Update doc comments to include message argument 2016-02-01 18:42:23 -02:00
lucasfcosta
eb3a979c07 Fix missing msg argument for change related assertions 2016-01-31 13:35:19 -02:00
Keith Cirkel
4ca0218391 chai@3.5.0 2016-01-28 11:54:31 +00:00
qbolec
ae4b5f97c7 Added includeDeepMembers 2016-01-10 13:51:17 +01:00
Benoit Larroque
37e9d25579 Fix non ES5 compliant regexp
ES5 appears to require that { be escaped when not used as part of a quantifier. While this works fine in browsers it appears to choke less lenient runtimes (e.g. Duktape).
2015-12-23 14:32:59 +01:00
Gerard Delmàs
6589917979 clarified assert.isObject & assert.isNotObject documentation 2015-12-17 18:45:45 +01:00
Jurko Gospodnetić
568fc1ae0b fix error message tag substitution
String.prototype.replace() had some extra undesireable substitution behaviour
when it replaces a tag with a string containing some internal tags like `$$`,
or `$'`.

For more detailed information see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
2015-12-14 15:13:03 +01:00
lizhengnacl
2286129635 clerical error 2015-12-09 16:54:30 +08:00
David Broder-Rodgers
8877fca8a6 Added JSDocs to should interface 2015-12-07 13:24:35 +00:00
Keith Cirkel
12bfdd1764 chai@3.4.2 2015-11-15 22:48:29 +00:00
Keith Cirkel
9319c234c9 (docs) Add namespace to all public methods 2015-11-15 22:44:44 +00:00
Keith Cirkel
86cc3e893f chai@3.4.1 2015-11-07 23:17:36 +00:00
Keith Cirkel
c977f90266 Merge pull request #547 from keithamus/fix-docs
Fix documentation syntax errors
2015-11-07 22:56:26 +00:00
Keith Cirkel
ab4208cb9d Fix documentation syntax errors
This is just enough to get Dox parsing the codebase to generate documentation
JSON. It does not fix potential inaccuracies or other problems with the docs.
2015-11-07 22:47:19 +00:00
Patrick Kovach-Long
d6d4f7d0ab Update assertions.js
removed 'out of range' reference error
2015-11-02 08:05:59 -05:00
Keith Cirkel
71b2512a99 chai@3.4.0 2015-10-21 11:49:38 +01:00
Bertrand Marron
8c1d8cf932 Revert .empty assertion change from PR #499
The change introduced in #499 breaks compatibility with Array-like
objects (e.g. mongoose arrays).
It should be applied in the next major version.

Fix #537
2015-10-21 12:29:04 +02:00
Droogans
b474ceee54 feat(matchers): Allow for objects in oneOf 2015-10-15 15:02:43 -05:00
Droogans
179d4701b8 feat(matchers): Add value-in-list assertion
Adds a way to test if a value appears in a flat list. Compliments
`include.members` to reverse the order of the input. Now the list
appears in the assertion, as opposed to the `expect`.

Closes #532
2015-10-12 22:18:24 -05:00
Xue Hu
7c14c15dee Fix assert lengthOf example 2015-10-05 16:19:36 -07:00
root
7fe23e9799 Added approximately alias to close to 2015-10-04 01:49:25 -04:00
Keith Cirkel
7f5a108a28 Merge pull request #446 from danielbprice/master
Issue #442 chai can't cope with AssertionErrors raised from node's assert
2015-10-02 10:52:14 +01:00
Austin Pray
936e7575f7 Fixes spelling error "everthing" -> "everything" 2015-09-28 21:29:41 -05:00
Jurko
27b6f7db58 document how the new Error type gets detected by the a/an matcher 2015-09-22 17:28:05 +02:00
Jérémie Astori
1f8c65135d Remove multi-type support for a/an assertion 2015-09-12 13:04:56 +00:00
Jérémie Astori
675b51b3ad Add a utility to enforce allowed types tested by an assertion 2015-09-12 12:59:51 +00:00
Jérémie Astori
0acb2ec8f5 Use new feature of a/an assertion to check type of tested object when using include assertion 2015-09-12 10:14:01 +00:00
Jérémie Astori
d27ceb54a4 Improve message of multi-type a/an assertions 2015-09-12 10:14:01 +00:00
Jérémie Astori
5eb39067ad Add support of multiple types in an/a assertions for the BDD API, with naive message 2015-09-12 10:14:01 +00:00
Jérémie Astori
cf0e3a5677 Check that expected type for include is an array, an object, or a string, in a naive way 2015-09-12 10:14:01 +00:00
Keith Cirkel
13a90097eb chai@3.3.0 2015-09-11 22:36:05 +01:00
Keith Cirkel
cf9f5d99d7 Merge pull request #512 from dereke/master
fixed expect('').to.contain('') so it passes
2015-09-11 22:20:30 +01:00
kpdecker
b6b84e5631 Fix stack trace tracking for property asserts
The ssfi parameter was not being updated for these methods, which ended up causing the trace to be omitted.

Fixes #358
2015-09-08 02:15:47 -05:00
Derek Ekins
eaba0be444 fixed expect('').to.contain('') so it passes 2015-09-01 13:59:39 +01:00
Keith Cirkel
a42ac436bb Merge pull request #496 from astorije/astorije/frozen-errors
Make sure TypeErrors thrown by frozen are caught
2015-08-10 10:13:16 +01:00
Jérémie Astori
1cc56c88eb Remove some trailing whitespaces 2015-07-26 19:43:02 +00:00
Jérémie Astori
ffc59fccd5 Make sure TypeErrors thrown by extensible are treated in a ES6 way and test these 2015-07-26 19:42:46 +00:00
Jérémie Astori
9b71590fe3 Make sure TypeErrors thrown by sealed are treated in a ES6 way and test these 2015-07-26 19:31:48 +00:00
Jérémie Astori
eae67c0d5c Make sure TypeErrors thrown by frozen are treated in a ES6 way and test these 2015-07-26 17:43:48 +00:00
Keith Cirkel
7d36b5aa4e Merge pull request #500 from wraithan/add-assert-gte-lte
isAtLeast, isAtMost assertions added to assert interface
2015-07-24 23:07:21 +01:00
Keith Cirkel
8aea7a55df Merge pull request #499 from Daveloper87/empty_string_check_fix
Shortened check for empty
2015-07-24 22:55:23 +01:00
Wraithan (Chris McDonald)
3c681e2dce isAtLeast, isAtMost assertions added to assert interface 2015-07-24 09:25:56 -07:00
Dai
bba85d0f37 Simplified .empty 2015-07-24 06:55:24 +01:00
Cezary Kluczyński
b9730e070f JSDoc blocks aligned with corresponding functions 2015-07-20 20:32:46 +02:00
Cezary Kluczyński
5bd86c2b38 isNotTrue, isNotFalse assertions added 2015-07-20 19:29:04 +02:00
Keith Cirkel
9fb29cd0d6 chai@3.2.0 2015-07-19 17:59:47 +01:00
Keith Cirkel
40cdaa3400 Merge pull request #489 from astorije/astorije/aliases
Various work on aliases
2015-07-19 17:58:14 +01:00
Jérémie Astori
e5071edd8b Invert assertions and aliases for is* assertions to make the documentation and code consistent with other is* assertions 2015-07-18 23:21:20 +00:00
Jérémie Astori
9e14164b67 Make throws aliases consistent across examples and definitions 2015-07-18 23:14:45 +00:00
Jérémie Astori
11aa743472 Add aliases (and tests) for assert.ok and assert.notOk to match the other isSomething assertions 2015-07-18 23:14:45 +00:00
Jérémie Astori
909616e0ad Fix wrong call to the underlying method when checking if an object is frozen 2015-07-18 01:40:02 +02:00
Jérémie Astori
ee573496d4 Add aliases to extensible, sealed and frozen properties for consistency 2015-07-17 23:30:45 +00:00
Jérémie Astori
3b980e5dd3 Fix docstring regarding assert.notFrozen 2015-07-17 23:30:03 +00:00
Keith Cirkel
36873c6cbf Merge pull request #484 from couchand/patch-1
Add respondsTo and satisfies as aliases
2015-07-17 16:33:18 +01:00
Denis Luchkin-Zhou
65180716d6 Fixing a typo in the getProperties() utility
...where `subject` should apparently be `object`.
2015-07-17 11:23:45 -04:00
Andrew Couch
802fa5e0bb Add respondsTo and satisfies as aliases 2015-07-17 11:14:17 -04:00
Keith Cirkel
6561fc29a4 chai@3.1.0 2015-07-16 22:02:04 +01:00
Brad Cypert
a5687a2648 Added support for NaN. Tests included. 2015-07-16 10:18:54 -07:00
matthewlucock
63a89f6967 Assertions to test if objects are frozen 2015-07-12 22:57:42 +10:00
matthewlucock
1486d41b96 Assertions to test if objects are sealed 2015-07-12 22:57:26 +10:00
matthewlucock
4c7926f5f0 Assertions to test if objects are extensible 2015-07-12 22:56:15 +10:00
Dai
d76225c7c4 fixed check on var name to obj from object 2015-06-29 00:41:23 +01:00
Keith Cirkel
4cdf8202c8 chai@3.0.0 2015-06-04 00:19:52 +01:00
Keith Cirkel
3b17b33cf8 Remove trailing comma
Fixes #459
2015-06-03 21:23:34 +01:00
BinaryMuse
b5c597f7a2 Remove stray character in assert.notInclude docs 2015-06-01 11:57:32 -07:00
David Losert
81b88f869b Replaced type.js with the "chaijs/type-detect" library. 2015-05-29 20:38:44 +01:00
root
3048c06f00 Assert ifError now throws the error passed in, to keep it consistent with node's assert.ifError 2015-05-29 20:37:29 +01:00
⅕ Zander
0027d65a54 Don't rely on optional args value being implicitly undefined 2015-05-29 01:35:33 -04:00
Daniel Price
ab02c6ff47 Issue #442 chai can't cope with AssertionErrors raised from node's assert 2015-05-15 11:46:05 -07:00
Keith Cirkel
dcca61d04e Update lengthOf examples 2015-05-13 09:05:00 +01:00
Keith Cirkel
d3696cafaf Quick version fix for length deprecation 2015-05-10 23:28:31 +01:00
Keith Cirkel
eb31f3d5e0 Merge pull request #429 from valscion/document-deprecation-plan-of-length
Add .length(value) deprecation warning to documentation
2015-05-10 23:27:14 +01:00
James Kyle
f1572d64d2 Add Assertion alias: matches => match. Resolves #438 2015-05-04 08:50:34 -07:00
Keith Cirkel
0a113fb88f Merge pull request #424 from astorije/astorije/minimalist-typo
Fix erroneous example in the docstring of the keys assertion
2015-05-03 11:59:02 +01:00
Keith Cirkel
73f5d99ecf Merge pull request #397 from astorije/astorije/assert-plugin-api
Add missing parameter showDiff and make docstring "documentationable"
2015-05-03 11:54:45 +01:00
Keith Cirkel
2abd737618 Release 2.3.0 2015-04-26 17:18:03 +01:00
Vesa Laakso
2330d93bdc Add .length(value) deprecation warning to documentation
Fixes https://github.com/chaijs/chai/issues/427
2015-04-17 16:55:55 +03:00
Jérémie Astori
0f6ab288f0 Fix erroneous example in the docstring of the keys assertion 2015-04-12 17:23:10 -04:00
Mitchell Johnson
2675bbb7e1 Fix a small bug in the .null assertion docs 2015-04-07 12:39:36 -04:00
Jérémie Astori
a62ac240e5 Remove trailing whitespaces 2015-04-04 13:55:46 -04:00
Jérémie Astori
63f727ba85 Fix super minor typo in an example 2015-04-04 13:55:34 -04:00
Jordan Harband
8b6a3ccb31 Add ownPropertyDescriptor assertion. 2015-03-26 14:08:53 -07:00
Keith Cirkel
2173e6378c Release v2.2.0 2015-03-26 18:03:02 +00:00
Keith Cirkel
dc5bb480b7 Tweak documentation on .deep flag. 2015-03-20 09:26:14 +00:00
Kaito Udagawa
1aae1b05db Documentation of escaping in .deep flag. 2015-03-20 16:15:13 +09:00
Kaito Udagawa
8d370cf4f3 take regular expression apart 2015-03-19 20:39:55 +09:00
Kaito Udagawa
704670a23b Feature: backslash-escaping in .deep.property
This commit includes:
* getPathInfo handles escaping `.[]`
* Documentation added to `.property`
* Documentation added to `.getPathInfo`
* Test cases for `.property`
* Test cases for `.deep.property`
* Test cases for `.getPathInfo`
Note that the input of `.getPathInfo` assumed to match the following:
/^(?:(?:\\[.\[\]]|[^.\[\]])+|\[\d+\])(?:\.(?:\\[.\[\]]|[^.\[\]])+|\[\d+\])$/
2015-03-18 21:57:03 +09:00
Kaito Udagawa
b6e1b573e0 Escaping dot should be taken in deep property
* removing backslash prior to "."
* test case: "foo\\.bar" names {"foo.bar": "baz"}
2015-03-17 19:39:14 +09:00
Keith Cirkel
9249acc4c5 Release v2.1.2 2015-03-15 21:22:54 +00:00
Jérémie Astori
15b9c70710 Add missing parameter showDiff and make docstring "documentationable" 2015-03-09 20:22:33 -04:00
root
da2ec4a1d4 No longer using eval on assert operator #386 2015-03-08 13:18:49 -04:00
Keith Cirkel
afd689acb3 Release v2.1.1 2015-03-04 20:19:52 +00:00
eldritch fossicker
bb8d0bf7a4 updates to reflect code style preference from @keithamus 2015-03-03 14:28:44 -06:00
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
David da Silva
cec4ac1ed7 a more readable/simple condition statement, as pointed out by @keithamus 2014-10-31 15:20:12 +01:00
David da Silva
cbf76dcde8 added check for logging negative zero 2014-10-31 11:40:51 +01:00
Joshua Perry
4b0c0b6222 Allows writing lint-friendly tests
This makes the final assertion checks noop functions so that they can be formatted like function calls. This keeps linters (JSLint/JSHint) off our back for having an inop expression.

Completes #41
2014-10-13 16:31:17 -06:00
Jake Luer
15eab030b7 Release 1.9.2 2014-09-29 19:24:59 -04: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
7e28dcc267 Merge pull request #269 from charlierudolph/cr-codeCleanup
Remove unused argument
2014-09-29 18:17:03 -04:00
Jake Luer
6e65020d2e Merge pull request #277 from charlierudolph/fix-doc
Fix assert documentation
2014-09-29 18:16:24 -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
Jake Luer
a9c974a926 Merge pull request #289 from charlierudolph/cr-dryUpCode
Dry up code
2014-08-30 11:26:25 -04:00
charlierudolph
0a1812c9c9 Dry up code 2014-08-27 13:24:51 -07:00
mohayonao
11fe70ef82 assert: .closeTo() verify value's type before assertion 2014-07-16 09:50:45 +09:00
Martin Middel
4b31574658 Rewrite pretty-printing HTML elements to prevent throwing internal errors
Fixes errors occuring when using a non-native DOM implementation
2014-06-30 20:38:14 +02:00
charlierudolph
7a0a6daeaa Fix assert documentation 2014-06-27 16:27:05 -07:00
charlierudolph
e8ff325d0e Remove unused argument 2014-06-08 14:06:56 -07:00
charlierudolph
216ad26aa1 Allow messages to be functions 2014-06-08 14:00:42 -07:00