Commit graph

1548 commits

Author SHA1 Message Date
Jakob Krigovsky
802beccf10 Add blank lines between headers and descriptions 2016-10-08 18:34:11 +02:00
Keith Cirkel
4936228d06 Merge pull request #832 from SonicHedgehog/fix-jsdoc
Fix typo in JSDoc param documentation
2016-10-08 15:33:24 +01:00
Jakob Krigovsky
0e96ad4735 Fix typo in param documentation 2016-10-08 15:59:50 +02:00
Aleksey Shvayka
2ef786d254 Add .empty to assert interface (#828)
* improve jsdoc

* add .empty to assert interface

* add assert.empty tests

* add Map and Set to jsdoc
2016-10-05 12:28:22 -03:00
Aleksey Shvayka
ac0c5f1a16 Do not suppress TypeErrors thrown on integrity checks (#823)
* document behavior for primitives

* simplify integrity checks

* add regression tests

* better tests

* update comment

* add comments to tests
2016-10-04 15:20:42 -03:00
Keith Cirkel
a6c2892ee2 Merge pull request #824 from shvaikalesh/patch-1
Add @shvaikalesh to MAINTAINERS
2016-10-04 09:15:15 +01:00
Aleksey Shvayka
bbfe7b0e8f Add @shvaikalesh to MAINTAINERS 2016-10-04 00:14:43 +03:00
Lucas Vieira
f3feb7af71 Merge pull request #819 from shvaikalesh/master
Remove extra `exports` and use version from pkg.json
2016-10-03 10:00:12 -03:00
Aleksey Shvayka
4d45c5db6e remove extra exports and use version from pkg.json 2016-10-03 15:12:34 +03:00
Grant Snodgrass
b99fae70f6 Merge pull request #818 from shvaikalesh/master
Use utils.type for `arguments` check
2016-10-03 07:05:49 -04:00
Aleksey Shvayka
c736c85bf0 use utils.type for arguments check 2016-10-03 12:54:14 +03:00
Lucas Vieira
298d4423c3 Drop support of node v0.10 2016-10-02 18:07:25 -03:00
Aleksey Shvayka
fdd0f8cffe Make utils.getName more robust & use it in empty (#813)
* use utils.getName

* remove extra .to in tests

* make getName even more robust

* add basic tests
2016-10-02 15:57:40 -04:00
Lucas Vieira
809ac3ea14 Merge pull request #815 from shvaikalesh/master
Remove implicit global `actual`
2016-10-02 16:13:45 -03:00
Aleksey Shvayka
f126cf6e15 Remove implicit global actual 2016-10-02 21:44:41 +03:00
Aleksey Shvayka
c38bfec30c Make empty assertion work with es6 collections (#814)
* support Map and Set

* throw on weak collections

* called on => passed

* account for partial implementations
2016-10-02 15:33:59 -03:00
Aleksey Shvayka
5b170b2e3b Make 'empty' throw on non-string primitives and functions (#812)
* Make 'empty' throw on non-string primitives and functions

* Update jsdoc

* improve error messages

* fix symbol to string coercion for Node 0.12

* use utils.inspect
2016-10-01 15:58:45 -03:00
Grant Snodgrass
5dd96a0a3d Merge pull request #810 from meeber/refactor-own-property
Refactor `ownProperty`
2016-09-29 16:12:38 -04:00
Lucas Vieira
29e7d8728e Merge pull request #668 from lucasfcosta/deep-flag-for-keys
Deep flag support for keys assertion
2016-09-28 19:12:38 -03:00
Grant Snodgrass
edfe064774 Refactor ownProperty
- Add `own` flag
- Make `ownProperty` and `haveOwnProperty` aliases of `own.property`
- Add `deep` support to `own.property`
- Add `assert.deepOwnPropertyVal`
- Add `assert.notDeepOwnPropertyVal`
2016-09-28 17:24:00 -04:00
Grant Snodgrass
1f36393d1c Standardize failed property assertion messages 2016-09-28 06:51:26 -04:00
Grant Snodgrass
11007704be Merge pull request #808 from meeber/fix-broken-ie-tests
Fix getName for anon functions in IE
2016-09-27 18:54:21 -04:00
Grant Snodgrass
530a6c9e9e Fix getName for anon functions in IE 2016-09-27 17:28:48 -04:00
lucasfcosta
9498811fe2 Deep flag support for keys assertion 2016-09-27 18:00:14 -03:00
Keith Cirkel
92b1ff7389 Merge pull request #806 from meeber/get-name
Update getName to fix inspect in Firefox
2016-09-27 10:10:38 +01:00
Grant Snodgrass
a3b70a2b9d Update getName to fix inspect in Firefox 2016-09-26 16:00:58 -04:00
Grant Snodgrass
36bbf1c49b Merge pull request #789 from meeber/proxify-methods
Wrap non-chainable methods in proxies
2016-09-26 12:02:13 -04:00
Grant Snodgrass
eac90a5209 Wrap non-chainable methods in proxies 2016-09-25 20:13:19 -04:00
Keith Cirkel
190b2b735e Merge pull request #802 from lucasfcosta/fix-assertion-inspect-proxy
Fix bug when trying to call inspect on an Assertion
2016-09-23 10:00:18 +01:00
lucasfcosta
fdc1dbc42b Fix bug when trying to call inspect on an Assertion 2016-09-22 19:38:19 -03:00
Lucas Fernandes da Costa
01963b7438 Merge pull request #804 from vieiralucas/hotfix-ie10-failing
Fix breaking test on IE10
2016-09-19 17:17:33 -03:00
Lucas Vieira
d0242ee9e5 Not check instaceOf if __proto__ is not supported 2016-09-19 15:26:35 -03:00
Lucas Fernandes da Costa
7683356fff Merge pull request #799 from vieiralucas/consistency-return-new-assertion
Return new assertion with flags copied over instead of this. Fix #791
2016-09-19 11:25:43 -03:00
Lucas Vieira
5d11228cfa Wrap some utilities tests with describe so we can cleanup in an after block even if they fail 2016-09-18 23:04:06 -03:00
Keith Cirkel
dfbcf8fd19 Merge pull request #801 from vieiralucas/add-toJSON-proxyExcludedKeys
Add toJSON to proxyExcludedKeys
2016-09-15 08:09:26 +01:00
Lucas Vieira
1ae0a41be2 Return new assertion instead of this for overwriteChainableMethod 2016-09-15 02:34:27 -03:00
Lucas Vieira
f6c4fa3939 Remove new methods and properties after using them for test 2016-09-15 02:34:27 -03:00
Lucas Vieira
27f426557d Return new assertion instead of this for addChainableMethod 2016-09-15 01:00:01 -03:00
Lucas Vieira
4501970540 Return new assertion instead of this for overwriteMethod 2016-09-15 01:00:01 -03:00
Lucas Vieira
031085d1d9 Add toJSON to proxyExcludedKeys 2016-09-15 00:03:16 -03:00
Lucas Vieira
4101fdfbfd Return new assertion instead of this for overwriteProperty 2016-09-14 13:39:31 -03:00
Grant Snodgrass
c9cb468b01 Merge pull request #798 from vieiralucas/patch-1
Add @vieiralucas to MAINTAINERS
2016-09-13 07:15:21 -04:00
Lucas Fernandes da Costa
a9cc35a183 Merge pull request #797 from nithmanoj/master
Fix #792: Rephrase old docs
2016-09-13 08:02:19 -03:00
Lucas Vieira
7bbc222fd3 Add @vieiralucas to MAINTAINERS 2016-09-13 07:54:27 -03:00
Manoj Kumar
b7d758ba8e Fix #792: Rephrase old docs 2016-09-13 06:12:49 +00:00
Lucas Fernandes da Costa
662b76c82d Merge pull request #796 from vieiralucas/verify-type-round2
Verify types on increase | decrease
2016-09-12 15:01:45 -03:00
Lucas Vieira
5f3c4ae166 Improve docs for "increase | decrease"
Indicate that 'property' and 'message' are optional.
Indicate that 'increase' and 'decrease' can receive a function which
returns the property to be checked.
2016-09-12 13:26:28 -03:00
Keith Cirkel
95b511a51c Merge pull request #794 from lucasfcosta/consistent-message-assert-equals
Enabling showDiff for assert's equal and notEqual methods. Closes #790
2016-09-11 22:20:53 +01:00
Keith Cirkel
ad5a2b377f Merge pull request #784 from meeber/fix-broken-tests
Fix broken tests in Node v6.5 and update supported node versions
2016-09-11 22:19:49 +01:00
Lucas Vieira
c802d38dbe Add tests that ensure assert.atMost and assert.atLeast are checking type 2016-09-10 17:01:26 -03:00