Keith Cirkel
dbeae08fe5
Merge pull request #1040 from shvaikalesh/master
...
Make tests pass with `--use_strict`
2017-09-06 14:23:29 -07:00
Aleksey Shvayka
300b994ad3
do not attempt to define properties on primitives
2017-09-06 22:19:26 +03:00
Aleksey Shvayka
d4fde80a3c
fix instanceof rethrow test
2017-09-06 22:19:10 +03:00
Aleksey Shvayka
6586e2dcbe
add missing var
s
2017-09-06 22:18:25 +03:00
Grant Snodgrass
529d395fa0
Merge pull request #1037 from Cutlery-Drawer/master
...
chai@4.1.2
2017-08-31 17:35:42 -04:00
Alhadis
b534fca6c0
chai@4.1.2
2017-08-31 21:57:15 +10:00
Jérémie Astori
c592551795
Merge pull request #1032 from Cutlery-Drawer/csp-fix
...
Use a hardcoded no-op instead of instancing
2017-08-23 16:00:02 -04:00
Alhadis
31c35595d7
Use a hardcoded no-op instead of instancing
...
The use of `new Function()` causes an EvalError if the environment's CSP
forbids execution of unsafe-eval. As there's no runtime evaluation being
performed, it's better to use a plain anonymous function instead.
2017-08-24 05:35:11 +10:00
Keith Cirkel
1ae9386901
Merge pull request #1025 from yanca018/master
...
Update license
2017-08-14 09:27:36 +01:00
yanca018
786043bffc
Update license
2017-08-14 02:40:04 -05:00
Pauric Holleran
7c1ca16fb3
docs: add missing assert parameters ( #1023 )
2017-08-09 14:22:25 +03:00
greenkeeper[bot]
6e72c5ac9a
fix(package): update deep-eql to version 3.0.0 ( #1020 )
2017-08-06 00:42:35 +03:00
Keith Cirkel
02ddebd8f2
Merge pull request #1019 from meeber/release-4.1.1
...
chai@4.1.1
2017-08-05 08:28:17 +01:00
Grant Snodgrass
ac48db3a72
chai@4.1.1
2017-08-04 18:29:14 -04:00
Grant Snodgrass
d2e9599bec
Merge pull request #1016 from chaijs/fix-reindent-code-1014
...
docs: re-indent hasAnyKeys code
2017-08-02 16:53:41 -04:00
Keith Cirkel
92d2cca468
docs: re-indent hasAnyKeys code
...
Refs #1014
2017-08-02 21:11:36 +01:00
Keith Cirkel
b625497f1e
Merge pull request #1012 from meeber/fix-include-types
...
fix: `.include` to work with all objects
2017-08-02 20:59:47 +01:00
Keith Cirkel
8fa24f2972
Merge pull request #1014 from zenHeart/fix-hasAnyKeys-comment
...
fix: correct hasAnyKeys comment error
2017-08-02 20:57:32 +01:00
zenheart
113a5b8b6a
fix: correct hasAnyKeys comment error
2017-08-02 08:55:45 +08:00
Grant Snodgrass
c01cf30de9
fix: .include
to work with all objects
...
Overly strict type-checking was causing `.include` to reject `Error`
objects and objects with a custom `@@toStringTag`.
2017-07-31 17:22:58 -04:00
Keith Cirkel
1847ef8e7e
Merge pull request #1008 from meeber/fix-ie11-instanceof
...
fix: `.instanceof` to allow DOM interfaces in IE11
2017-07-26 09:45:05 +01:00
Grant Snodgrass
c107abb319
fix: .instanceof
to allow DOM interfaces in IE11
2017-07-24 18:57:42 -04:00
Grant Snodgrass
df9073cb8e
Merge pull request #998 from v1adko/make-release
...
chai@4.1.0
2017-07-11 19:57:05 -04:00
Grant Snodgrass
cad9933b5a
Merge pull request #1004 from chaijs/code-owners
...
Create CODEOWNERS
2017-07-11 19:44:20 -04:00
Keith Cirkel
cf70b11f99
Create CODEOWNERS
2017-07-11 19:09:10 -04:00
Keith Cirkel
3397ddaebf
Merge pull request #1005 from meeber/skip-failing-tests
...
test: skip failing `.include` tests in IE11
2017-07-10 11:46:20 +01:00
Grant Snodgrass
11a6f8502f
test: skip failing .include
tests in IE11
...
Contrary to spec, IE11 uses SameValue instead of SameValueZero
equality for Sets.
2017-07-09 19:01:00 -04:00
v1adko
45cb32710a
chai@4.1.0
2017-06-24 09:30:03 +03:00
Aleksey Shvayka
2eddd79002
Add ES6 collection support to include() ( #994 )
...
* fix error messages tests
* add tests
* add implementation
* performance tweaks
* add tests for SameValueZero
* drop weakmap support
* update docs
2017-06-23 15:35:07 -07:00
Vlad Kolbaya
3c932e21e6
feat: allow dates for isBelow and isAbove assertions ( #990 )
...
* Fixed most tests
* Fix date uniformity (UTC)
* Add comment
* Cleanup
* Change extra functions (WIP)
* Finished tests
* Add master chai.js back
* Uncomment failing tests
* Update master and tests
* Actual seconds, duh
* Refactor 'above'
* Update all methods
* More explicit error
* Documentation - articles consistency
* Custom message test in assert
* No parenthesis in should
* Custom message for isAbove
2017-06-23 12:54:23 +01:00
Grant Snodgrass
3bcb21cdeb
Merge pull request #979 from chaijs/greenkeeper/browserify-14.4.0
...
Update browserify to the latest version 🚀
2017-06-22 15:42:04 -04:00
Keith Cirkel
5daceabe7d
Merge pull request #988 from samlanning/missing-var
...
Add a missing var keyword found by lgtm.com
2017-06-19 10:50:41 +01:00
Keith Cirkel
9116bc8591
Merge pull request #993 from meeber/refactor-expect-types
...
refactor: `expectTypes` to access `ssfi` flag
2017-06-19 10:48:23 +01:00
Keith Cirkel
351e9689d3
Merge pull request #992 from meeber/property-target-type
...
fix: check target's type in `.property` assertion
2017-06-19 10:47:41 +01:00
Grant Snodgrass
e7b23846b4
refactor: expectTypes
to access ssfi
flag
...
The `ssfi` flag doesn't need to be passed to the `expectTypes`
util function because it can access it directly from the assertion
object.
2017-06-11 08:33:48 -04:00
Grant Snodgrass
e6ddf64c8f
fix: check target's type in .property
assertion
...
Previously, the `.property` assertion failed ungracefully if the target was `null` or `undefined`. This commit causes an `AssertionError` to be thrown instead so that the ssfi flag and custom error messages are respected.
2017-06-10 17:51:50 -04:00
Sam Lanning
7e466af33b
Add a missing var keyword found by lgtm.com
2017-06-05 18:50:33 -07:00
Lucas Fernandes da Costa
616cf8bf88
Revert get version package json ( #986 )
...
* Revert getting version from package.json
* chai@4.0.2
2017-06-05 14:12:19 -03:00
Keith Cirkel
b38b8d7659
fix: ( #978 ) remove browser field ( #982 )
...
This removes the browser field which was used incorrectly. It is not needed for chai, and bundlers should bundle the commonjs code instead.
2017-05-31 18:01:31 -03:00
greenkeeper[bot]
eba5b420f8
chore(package): update browserify to version 14.4.0
2017-05-29 08:54:42 +00:00
Anderson Aguiar
d0ace69b68
Update supported node version badge in README FIX #975
2017-05-27 11:41:29 -03:00
Keith Cirkel
ab1fbadcfe
Merge pull request #973 from chaijs/chore-uncomment-travis-deploy
...
chore: uncomment travis lines
2017-05-26 10:58:22 +01:00
Keith Cirkel
545ca2f0a6
chore: uncomment travis lines
...
This allows us to release on tags, for the upcoming 4.0
2017-05-26 10:24:51 +01:00
Keith Cirkel
6349ff4731
Merge pull request #972 from lucasfcosta/release-4.0.0
...
Release chai@4.0.0
2017-05-26 10:15:26 +01:00
lucasfcosta
0fe98b14fe
chai@4.0.0
2017-05-25 19:45:31 -03:00
Lucas Vieira
30a44513f4
Merge pull request #967 from lucasfcosta/remove-lib-bump
...
Remove bump command to change lib/chai.js
2017-05-09 22:08:23 -03:00
lucasfcosta
8ba95a7620
Remove bump command to change lib/chai.js
2017-05-09 19:44:30 -03:00
Keith Cirkel
0825826059
Merge pull request #964 from zetamorph/assert-nestedInclude-ownInclude
...
assert: add nestedInclude, deepNestedInclude, ownInclude and deepOwnInclude
2017-05-09 10:08:36 +01:00
Grant Snodgrass
f3adfd911e
fix: PhantomJS 1.x incompatibility ( #966 )
2017-05-08 17:22:54 -03:00
Johannes Loewe
b744130df9
Assert: made documentation more descriptive
...
Assert: made documentation more descriptive
2017-05-07 14:49:42 +02:00