Commit graph

889 commits

Author SHA1 Message Date
Keith Cirkel
2173e6378c Release v2.2.0 2015-03-26 18:03:02 +00:00
Keith Cirkel
1abc3845e3 Merge pull request #405 from chaijs/deep-escape-doc-tweaks
Tweak documentation on `.deep` flag.
2015-03-20 09:46:02 +00:00
Keith Cirkel
dc5bb480b7 Tweak documentation on .deep flag. 2015-03-20 09:26:14 +00:00
Keith Cirkel
32e890e6b0 Merge pull request #402 from umireon/escaping-dot-should-be-taken
Escaping dot should be taken in deep property
2015-03-20 09:10:53 +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
7ca2a3bee5 Merge pull request #400 from chaijs/release-2.1.2
Release v2.1.2
2015-03-15 21:41:31 +00:00
Keith Cirkel
9249acc4c5 Release v2.1.2 2015-03-15 21:22:54 +00:00
Jake Luer
57bd5020c0 Merge pull request #396 from chaijs/add-keith-cirkel-contributing-md
Add Keith Cirkel to CONTRIBUTING.md
2015-03-09 14:13:23 -04:00
Keith Cirkel
51d3b18fe6 Add Keith Cirkel to CONTRIBUTING.md 2015-03-09 16:21:09 +00:00
Keith Cirkel
83a9e56d2a Merge pull request #395 from cjqed/386-assert-operator-no-eval
No longer using eval on assert operator #386
2015-03-08 22:56:12 +00:00
root
da2ec4a1d4 No longer using eval on assert operator #386 2015-03-08 13:18:49 -04:00
Keith Cirkel
4b33fe3d0b Merge pull request #389 from chaijs/update-git-summary
Update `git summary` in README
2015-03-04 21:21:23 +00:00
Keith Cirkel
b20a9421b1 Update git summary in README 2015-03-04 21:20:35 +00:00
Keith Cirkel
d7cafca023 Merge pull request #388 from chaijs/release-2.1.1
Release v2.1.1
2015-03-04 20:26:26 +00:00
Keith Cirkel
afd689acb3 Release v2.1.1 2015-03-04 20:19:52 +00:00
Keith Cirkel
dbeb2a8609 Merge pull request #385 from eldritch-fossicker/master
fix indexing into array with deep propery
2015-03-03 20:36:43 +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
Keith Cirkel
1ce171f3ef Merge pull request #383 from gurdiga/config-doc-wording-improvement
config.truncateThreshold docs: simpler wording
2015-03-01 11:01:52 +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
Keith Cirkel
a97680f6be Merge pull request #381 from astorije/patch-1
Add a minor precision that empty asserts on strings too.
2015-02-28 21:26:08 +00:00
Jérémie Astori
d080d1a6a4 Add a minor precision that empty asserts on strings too. 2015-02-28 00:50:35 -05:00
Keith Cirkel
2cad0dcbba Merge pull request #379 from dcneiner/should-primitive-fix
Getter for Should syntax now uses valueOf for primitives
2015-02-24 22:27:20 +00: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
09e17b9e09 Merge pull request #375 from chaijs/release-2.1.0
Release v2.1.0
2015-02-23 21:41:15 +00:00
Keith Cirkel
ee5d666059 Release v2.1.0 2015-02-23 21:05:04 +00:00
Keith Cirkel
45f9e6aad1 Merge pull request #374 from jmm/v2.0.1
Increment version to 2.0.1.
2015-02-23 20:48:38 +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
Jake Luer
74ca9202ee Merge pull request #365 from chaijs/fix-travis
Fix travis.yml deploy
2015-02-11 15:26:36 -05:00
Keith Cirkel
a33e614e9a Fix travis.yml deploy 2015-02-11 19:47:55 +00:00
Keith Cirkel
2147e1d49e 2.0.0 2015-02-11 16:21:51 +00:00
Keith Cirkel
9c10c9f03e Merge pull request #364 from chaijs/v2.0.0
v2.0.0
2015-02-11 15:58:05 +00: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
Keith Cirkel
84ed233a6d v2.0.0 2015-02-09 20:33:41 +00:00
Keith Cirkel
5753ecbb5b Merge pull request #361 from gregglind/b265-keys-object
Fix #265
2015-02-09 18:37:37 +00: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
Keith Cirkel
bd722801a8 Merge pull request #359 from gregglind/b359-unexpected-keys-sort
Arrays passed to `.keys()` assertions are sorted (unexpectedly) by side-effect
2015-02-06 10:15:01 +00:00
Gregg Lind
68f3c02f07 Fix #359 keys() sorts input unexpectedly 2015-02-05 19:36:09 -06:00
Jake Luer
dfd73fffc8 contrib: publish release strategy and travis npm creds #337 2015-02-02 20:53:11 -05:00
Keith Cirkel
3a753199a2 Merge pull request #357 from danilovaz/master
Update copyright date
2015-02-01 11:15:04 +00:00
Danilo Vaz
fe83f2b4cf Update copyright date 2015-02-01 01:33:52 -02:00
Ian Zamojc
61d8718c69 added fail() method to expect interface 2015-01-30 16:00:47 -05:00
Ian Zamojc
9080562c9a using proper error checking method for should 2015-01-30 16:00:47 -05:00