Commit graph

634 commits

Author SHA1 Message Date
Jake Luer
723dbdfe98 comments on how to property use length as chain. Closes #74 2012-06-24 08:54:56 -04:00
Jake Luer
7629f8c4e5 tests for length as chainable property. #74 2012-06-24 08:46:44 -04:00
Jake Luer
0da5c375ce add support for length as chainable prop/method.
property can chain to above, below, within
`expect('foo').to.have.length.above(2);`
`expect('foo').to.have.length.below(4);`
`expect('foo').to.have.length.within(2,4);`
2012-06-24 08:44:14 -04:00
Jake Luer
25c4114206 Merge branch 'bug/77' 2012-06-24 08:22:30 -04:00
Jake Luer
5ed371e655 tests for getPathValue when working with nested arrays. Closes #77 2012-06-24 08:22:12 -04:00
Jake Luer
cf1bac542e add getPathValue support for nested arrays 2012-06-24 08:19:01 -04:00
Jake Luer
723728fe42 browser build 2012-06-24 07:44:00 -04:00
Jake Luer
802856849b fix bug for missing browser utils 2012-06-24 07:43:50 -04:00
Jake Luer
2c4d6b3477 compile tool aware of new folder layout 2012-06-24 07:42:27 -04:00
Jake Luer
013d4618dd Merge branch 'refactor/1dot1' 2012-06-24 07:19:19 -04:00
Jake Luer
cc0367a46a move core assertions to own file and refactor all using utils
* all properties are now defined using `Assertion.addProperty`
* all methods are now defined using `Assertion.addMethod`
2012-06-24 07:06:26 -04:00
Jake Luer
ff8455f303 rearrange folder structure 2012-06-24 06:25:36 -04:00
Jake Luer
40b0eb2268 Release 1.0.4 2012-06-03 19:29:39 -04:00
Jake Luer
65472738e5 Merge pull request #68 from fizker/itself
respondTo and functions
2012-06-03 15:39:14 -07:00
Benjamin Horsleben
80aa590ec5 Added itself chain. 2012-06-02 19:27:55 +02:00
Jake Luer
a05cba500c simplify error inspections for cross browser compatibility 2012-05-29 13:28:41 -04:00
Jake Luer
d02e94adff fix safari addChainableMethod errors. Closes #69
- also added arguments alias to `Arguments`.
- note: one can also call `expect(arguments).to.be.an('arguments')`
2012-05-29 13:07:00 -04:00
Jake Luer
886e626e57 Release 1.0.3 2012-05-27 18:19:47 -04:00
domenic
8c680682dc Point Travis badge to the right place. 2012-05-27 17:36:36 -04:00
domenic
8cd580d7f2 Make error message for eql/deep.equal more clear. 2012-05-27 17:34:27 -04:00
domenic
db98bd69e6 Fix .not.deep.equal.
It wasn't passing the negation through.
2012-05-27 17:31:06 -04:00
Jake Luer
f273ed6f5a contributors list 2012-05-26 23:43:48 -04:00
Jake Luer
1b89af7114 Release 1.0.2 2012-05-26 23:39:29 -04:00
Jake Luer
eb6453a5ca Merge pull request #67 from chaijs/chaining-and-flags
Chaining and flags
2012-05-26 20:35:15 -07:00
domenic
93d9d98df0 Browser build.
Expect and assert tests now pass in IE9, IE10.
2012-05-26 22:41:34 -04:00
domenic
e1256e9005 Use addChainableMethod to get away from __proto__ manipulation.
Helps with #66.
2012-05-26 22:38:47 -04:00
domenic
3a67f058f0 New addChainableMethod utility.
Uses `transferFlags`, and will be used for Chai's `a`/`an` and `includes`/`contains`.
2012-05-26 22:34:55 -04:00
domenic
5455ce4b5d Replace getAllFlags with transferFlags utility.
This will help more directly with #66 and with domenic/chai-as-promised#5.
2012-05-26 21:38:10 -04:00
Jake Luer
0191e762b9 browser build 2012-05-22 14:51:39 -04:00
Jake Luer
6090d77ea8 test - get all flags 2012-05-22 14:51:39 -04:00
Jake Luer
ffab05a192 utility - get all flags 2012-05-22 14:51:39 -04:00
domenic
48da0bdb68 Add .mailmap to .npmignore. 2012-05-20 16:12:09 -04:00
domenic
d45b0b3c50 Add a .mailmap file to fix my name in shortlogs.
See http://stackoverflow.com/q/10638062/3191
2012-05-20 14:11:35 -04:00
Jake Luer
ca5368cf65 Release 1.0.1 2012-05-18 14:26:45 -04:00
Jake Luer
58ae39554a browser build 2012-05-18 14:24:29 -04:00
domenic
554944f82f Fixing "an" vs. "a" grammar in type assertions.
Now says stuff like "expected x to be an array" instead of "expected x to be a array."
2012-05-18 14:05:06 -04:00
domenic
46a2f1c406 Uniformize assert interface inline docs.
At the same time, made small tweaks to the should/expect ones.
2012-05-18 14:00:50 -04:00
domenic
ae3be8c684 Don't use instanceof for assert.isArray.
This makes it more compatible with cross-frame checks.
2012-05-18 14:00:46 -04:00
domenic
4a938ef672 Add deep flag for equality and property value.
See #63 for more discussion.

Also adds to the assert interface:
 - deepProperty
 - notDeepProperty
 - deepPropertyVal
 - deepPropertyNotVal
2012-05-17 10:13:19 -04:00
Jake Luer
edf7a44a3a Merge pull request #64 from chaijs/assertion-docs
Uniformize assertion inline docs.
2012-05-17 06:57:49 -07:00
domenic
771895aab8 Uniformize assertion inline docs. 2012-05-16 20:55:36 -04:00
domenic
a16f809318 Add npm-debug.log to .gitignore. 2012-05-16 20:14:17 -04:00
Jake Luer
efc7759633 no reserved words as actuals. #62 2012-05-16 19:01:36 -04:00
Jake Luer
ec07b48ed0 Release 1.0.0 2012-05-15 14:36:29 -04:00
Jake Luer
461739d316 clean makefile 2012-05-15 14:36:17 -04:00
Jake Luer
da7925c49c rawr 2012-05-15 14:30:19 -04:00
Jake Luer
f7850b163c bad readme image 2012-05-15 14:29:19 -04:00
Jake Luer
0949638c99 readme cleanup 2012-05-15 14:27:49 -04:00
Jake Luer
a8d1404b2f browser build 2012-05-15 13:23:32 -04:00
Jake Luer
6114afc906 utility comments 2012-05-15 13:20:24 -04:00