Commit graph

1285 commits

Author SHA1 Message Date
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
Lucas Vieira
43b22c8fac Verify types on increase | decrease 2016-09-10 17:00:13 -03:00
Grant Snodgrass
c7dd9645de Update package.json engines node version 2016-09-10 15:06:03 -04:00
Grant Snodgrass
296f20a169 Update Travis Node versions 2016-09-10 15:06:03 -04:00
Grant Snodgrass
e24b66ee49 Fix broken tests when using Node v6.5 2016-09-10 15:06:03 -04:00
Lucas Fernandes da Costa
8166f33c2b Merge pull request #783 from meeber/4.x.x
Merge rebased 4.x.x branch into master
2016-09-10 15:49:06 -03:00
lucasfcosta
d539c8d8a3 Enabling showDiff for assert's equal and notEqual methods. Closes #790 2016-09-10 13:29:16 -03:00
Grant Snodgrass
4a009decbf Fix broken test after rebasing 4.x.x branch 2016-09-08 09:37:23 -04:00
Lucas Vieira
62309d38c4 Documentation update to indicate type requirements 2016-09-08 09:37:23 -04:00
Lucas Vieira
c3e828534b Verify types on within and related assertions 2016-09-08 09:37:23 -04:00
lucasfcosta
df1a89241b ownProperty assertions on Assert interface 2016-09-08 09:37:22 -04:00
lucasfcosta
16101af347 Assertion subject (obj) changes when using ownProperty assertion 2016-09-08 09:37:22 -04:00
lucasfcosta
01189490bd Truncate typedArrays according to their string representation 2016-09-08 09:37:22 -04:00
lucasfcosta
0e68e8d488 Use getOwnPropertyDescriptor instead of __lookup methods 2016-09-08 09:37:22 -04:00