Jake Luer
ca18882362
Merge branch 'master' of git://github.com/Liffft/chai into Liffft-master
...
* 'master' of git://github.com/Liffft/chai:
Cleaning up the js style…
expect tests now include message pass-through
packaging up browser-side changes…
Increasing Throws error message verbosity
Should syntax: piping message through
Conflicts:
test/expect.js
2012-10-01 15:06:24 -04:00
Jake Luer
9dd85eabd3
improved buffer deep equal checking
2012-10-01 14:47:21 -04:00
Scott Nonnenberg
00b2ed3840
Cleaning up the js style…
...
I've been writing too much coffeescript!
2012-09-05 11:24:27 -07:00
Scott Nonnenberg
941f992a26
Increasing Throws error message verbosity
...
'cause we actually want to know what was thrown.
2012-09-04 23:13:44 -07:00
Scott Nonnenberg
e383a6ece8
Should syntax: piping message through
2012-09-04 23:10:25 -07:00
Domenic Denicola
1024e2dd14
Add a setter for Object.prototype.should
. Closes #86 .
2012-08-24 20:28:13 -04:00
Jake Luer
35bec1b896
Release 1.2.0
2012-08-07 01:05:25 -04:00
Jake Luer
a83c7772e0
comment updates for utilities
2012-08-07 00:57:59 -04:00
Jake Luer
7ce5e9347e
tweak objDislay to only kick in if object inspection is too long
2012-08-07 00:57:38 -04:00
Jake Luer
dc6c5533eb
first draft of error message refactor. #93
2012-08-01 21:05:25 -04:00
Jake Luer
19fe54399b
add closeTo
assertion to assert
interface. Closes #89 .
2012-08-01 20:21:52 -04:00
Paul Miller
6b66ce72dd
Add check for DOM objects.
2012-07-28 03:27:38 +03:00
Jake Luer
e6d69c36e4
Merge branch 'master' of github.com:chaijs/chai
2012-07-26 14:12:23 -04:00
Jake Luer
4e3c89a14d
bug - getActual not defaulting to assertion subject
2012-07-26 14:11:43 -04:00
Victor Costan
f269726e9c
Don't inspect() assertion arguments if the assertion passes.
2012-07-19 02:09:14 -07:00
Jake Luer
b7aae4601f
Release 1.1.1
2012-07-09 12:49:18 -04:00
Teddy Cross
ddfea9575b
Document .equals
...
Not sure why it decided to move error.js around. Oh well?
2012-07-07 14:47:28 -04:00
Teddy Cross
45e458067a
Add .equals as an alias of .equal
2012-07-07 13:49:18 -04:00
Jake Luer
456ee6ad83
Release 1.1.0
2012-06-26 14:32:49 -04:00
Domenic Denicola
79c3654691
Use utils.getName
for all function inspections.
...
This makes the `respondTo` tests pass in IE, where functions don't themselves have a `name` property.
2012-06-26 12:30:25 -04:00
Kilian Ciuffolo
da2bbbf666
fixes #79
2012-06-26 13:41:15 +02:00
Jake Luer
c85882691f
expand docs to indicate change of subject for chaining. Closes #78
2012-06-24 09:14:15 -04:00
Jake Luer
94cfe27c4c
add that
chain noop
2012-06-24 08:57:40 -04:00
Jake Luer
723dbdfe98
comments on how to property use length
as chain. Closes #74
2012-06-24 08:54:56 -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
cf1bac542e
add getPathValue support for nested arrays
2012-06-24 08:19:01 -04:00
Jake Luer
802856849b
fix bug for missing browser utils
2012-06-24 07:43:50 -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
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
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
1b89af7114
Release 1.0.2
2012-05-26 23:39:29 -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
ffab05a192
utility - get all flags
2012-05-22 14:51:39 -04:00
Jake Luer
ca5368cf65
Release 1.0.1
2012-05-18 14:26:45 -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
domenic
771895aab8
Uniformize assertion inline docs.
2012-05-16 20:55:36 -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
a8d1404b2f
browser build
2012-05-15 13:23:32 -04:00
Jake Luer
6114afc906
utility comments
2012-05-15 13:20:24 -04:00
Jake Luer
9c63add86e
comments / docs updates
2012-05-14 20:32:53 -04:00
Jo Liss
4b72ff65ca
Fix and improve documentation of assert.equal and friends
2012-05-14 15:01:57 +02:00
John Firebaugh
ce5fc298ab
Use defined return value of Assertion extension functions
2012-05-09 19:22:25 -07:00
John Firebaugh
4122ae5db9
Update utility docs
2012-05-09 19:01:22 -07:00
Jake Luer
be7a8fcf48
Release 1.0.0-rc3
2012-05-09 19:20:56 -04:00
Jake Luer
666e75cfd6
assert minor refactor
...
- assert is now a function
- length is now lengthOf
- ownProperty derivatives done have `own` keyword
2012-05-09 19:16:26 -04:00
Jake Luer
9bacec225b
added chai.Assertion.add/overwrite prop/method for plugin toolbox
2012-05-09 18:56:53 -04:00
Jake Luer
7fe1f31ad9
add/overwrite prop/method don't make assumptions about context
2012-05-09 18:56:15 -04:00
Jake Luer
4a4966d94d
refactor all simple chains into one forEach loop, for clean documentation
2012-05-09 17:22:53 -04:00
Jake Luer
8cec45ac8a
comment updates for docs
2012-05-09 12:12:34 -04:00
domenic
3b927d4994
Using message flag in getMessage
util instead of old msg
property.
2012-05-07 18:03:50 -04:00
domenic
8625a5ae09
getMessage
shouldn't choke on null/omitted messages.
...
This came up when doing `assert(false, "message")`.
2012-05-07 17:49:38 -04:00
Domenic Denicola
942c5b98d1
return this
not necessary in example.
2012-05-07 17:26:27 -03:00
Domenic Denicola
8df3b13fe8
return this
not necessary in example.
2012-05-07 17:24:06 -03:00
Jake Luer
0e2c11a4ab
Release 1.0.0-rc2
2012-05-06 07:29:20 -04:00
Jake Luer
bed8867ac0
appropriate assert equivalent for expect.to.have.property(key, val)
2012-05-06 07:22:07 -04:00
Jake Luer
d03d686330
reset AssertionError to include full stack
2012-05-06 07:01:34 -04:00
Jake Luer
9105b89fc9
overwrite Property and Method now ensure chain
2012-05-06 06:54:21 -04:00
Jake Luer
0ecbc0eab2
Release 1.0.0-rc1
2012-05-04 17:58:24 -04:00
Jake Luer
97296e4979
assert interface - notMatch, ownProperty, notOwnProperty, ownPropertyVal, ownPropertyNotVal
2012-05-04 17:55:11 -04:00
Jake Luer
1082fc6544
cleaner should interface export.
...
- also aliased `chai.Should()` as the original would be overwritten after the first call (helps when using watch mode for test runners)
2012-05-04 17:55:11 -04:00
Jake Luer
755a36938b
added chai.Assertion.prototype._obj (getter) for quick access to object flag
2012-05-04 17:55:11 -04:00
Jake Luer
0a8ddc452f
moved almostEqual / almostDeepEqual to stats plugin
2012-05-04 17:55:11 -04:00
Veselin Todorov
22f594a0b9
Fix a typo
2012-04-29 10:21:33 +03:00
Veselin Todorov
f58760c615
Add undefined assertion
2012-04-29 09:59:24 +03:00
Veselin Todorov
234f4ee613
Add null assertion
2012-04-29 09:59:14 +03:00
Jake Luer
ee2050abaa
Merge pull request #54 from josher19/master
...
Added almostEqual to assert test suite.
2012-04-23 21:07:36 -07:00
josher19
d2f80f5991
Remove old test.assert code
2012-04-24 11:44:16 +08:00
josher19
d5fe1839a0
Use util.inspect instead of inspect for deepAlmostEqual and almostEqual
2012-04-24 11:34:59 +08:00
Jake Luer
ed14ab04c9
bug - context determinants for utils
2012-04-23 01:40:28 -04:00
josher19
6702b4da3d
dec=0 means rounding, so assert.deepAlmostEqual({pi: 3.1416}, {pi: 3}, 0) is true
2012-04-23 13:36:12 +08:00
Jake Luer
6292957d5e
[bug] util addProperty
not correctly exporting
2012-04-22 18:22:12 -04:00
Jake Luer
df069ad2d1
not using reserved words in internal assertions. #52
...
This commit fixes #52 in 1.0.0+
- also added mt/lt alias
2012-04-22 17:03:48 -04:00
Jake Luer
fc4956e9fa
version tick
2012-04-22 16:54:21 -04:00
Jake Luer
2d49079f60
Merge branch 'refs/heads/0.6.x'
...
Conflicts:
chai.js
docs/out/chai.js
docs/out/code/assert.html
docs/out/code/expect.html
docs/out/index.html
docs/out/support/coverage/index.html
docs/out/support/tests/mocha.js
lib/assertion.js
lib/chai.js
lib/error.js
lib/interface/assert.js
package.json
2012-04-22 16:39:54 -04:00
Jake Luer
b009feb48f
updated utility comments
2012-04-22 15:26:15 -04:00
Jake Luer
c49ef2790d
utility - overwriteMethod
2012-04-22 14:46:34 -04:00
Jake Luer
f7fd4ea282
utility - overwriteProperty
2012-04-22 14:46:26 -04:00
Jake Luer
f790baa32b
utility - addMethod
2012-04-22 14:46:12 -04:00
Jake Luer
76b195cd6c
utility - addProperty
2012-04-22 14:46:03 -04:00
Jake Luer
31e3035c3d
missing ;
2012-04-22 14:44:52 -04:00
Jake Luer
dd66ecbfd8
Release 0.5.3
2012-04-21 19:04:59 -04:00
Juliusz Gonera
23b9ed37df
fixed reserved names for old browsers in interface/assert
2012-04-20 20:02:00 -04:00
Juliusz Gonera
1af9807791
fixed reserved names for old browsers in interface/should
2012-04-20 19:58:06 -04:00
Juliusz Gonera
87e1a54ceb
fixed: chai.js no longer contains fail()
2012-04-20 19:48:30 -04:00
Juliusz Gonera
d90f152ebc
fixed reserved names for old browsers in Assertion
2012-04-20 19:35:21 -04:00
Veselin Todorov
4a8b41e268
Include/contain are now both properties and methods
2012-04-20 20:44:23 +03:00
Veselin Todorov
570e5a121e
Add an alias annotation
2012-04-20 20:43:34 +03:00
Veselin Todorov
b2b2b2a9bc
Remove usless function wrapper
2012-04-20 20:27:40 +03:00
Veselin Todorov
146598d21c
Fix a typo
2012-04-20 20:16:26 +03:00
Veselin Todorov
087047231e
A/an are now both properties and methods
2012-04-20 20:14:21 +03:00
domenic
1d39eaf3ab
Ignore IE-specific error properties.
2012-04-15 15:14:43 -04:00
domenic
888c752e61
New cross-browser getName
util.
2012-04-15 15:14:43 -04:00
domenic
272fcf5a3c
Fixing up AssertionError
inheritance.
...
* Use `Object.create` instead of `__proto__` for inheritance.
* Don't forget to set `AssertionError.prototype.constructor`.
* Put `name` on `AssertionError.prototype`, not on each instance.
2012-04-15 15:13:49 -04:00
domenic
ad3b19fe75
[bug] was still using constructor.name
in throw
assertion
2012-04-15 14:26:40 -04:00
Jake Luer
44ce3480e8
[bug] flag Object.create(null) instead of new Object
2012-04-11 13:33:39 -04:00
Jake Luer
d171238026
[refactor] all usage of Assertion.prototype.assert now uses template tags and flags
2012-04-11 13:30:40 -04:00
Jake Luer
9c5eaf09e6
[refactor] remove Assertion.prototype.inspect for testable object inspection
...
use message template tag `#{this}` instead
2012-04-11 13:29:16 -04:00
Jake Luer
2afd3de630
[refactor] object to test is now stored in flag, with ssfi and custom message
2012-04-11 13:28:14 -04:00
Jake Luer
78659b233c
[bug] flag util - don't return on set
2012-04-11 13:19:05 -04:00
Jake Luer
b381bfcd62
[docs] comments for getMessage utility
2012-04-11 12:28:54 -04:00
Jake Luer
75a91bbc34
[feature] getMessage
...
also, all `assert` utilities take params (this, arguments)
2012-04-11 12:18:36 -04:00
Jake Luer
13ff34bc98
[feature] testing utilities
2012-04-11 11:37:26 -04:00
Jake Luer
eefccd7e5f
[refactor] flag doesn't require call
2012-04-11 11:15:55 -04:00
domenic
41f645dbb8
Added support for throw(errorInstance).
...
Closes #47 .
2012-04-09 00:34:02 -04:00
domenic
f58f1ebb12
Use a foolproof method of grabbing an error's name.
...
Closes #45 .
2012-04-09 00:34:01 -04:00
domenic
48eeb56a75
Removed constructor.name check from throw.
...
Closes #46 and helps with #45 .
2012-04-09 00:34:01 -04:00
Jake Luer
9d302aa435
disabled stackTrack configuration tests until api is stable again
2012-04-06 21:17:43 -04:00
Jake Luer
850509a73a
first version of line displayed error for node js (unstable)
...
must have `chai.Assertion.includeStack = true`
2012-04-06 21:15:54 -04:00
Jake Luer
bcdef85158
refactor core Assertion to use flag utility for negation
2012-04-06 20:26:59 -04:00
Jake Luer
d4f5d4e0b4
added flag utility
2012-04-06 20:26:21 -04:00
Jake Luer
3eedda923f
added assertion negatives that were missing. #42
2012-04-06 19:57:33 -04:00
Jakub Nešetřil
497f8711ca
Support for expected and actual parameters in assert-style error object
2012-04-06 15:16:43 -04:00
Jakub Nešetřil
d4f1175e55
Support for expected and actual parameters in assert-style error object
2012-04-05 13:42:52 +03:00
Jake Luer
938c064d5f
Added assert.fail. Closes #40
2012-03-21 07:17:51 -04:00
Jake Luer
1abf9cfc8c
better error message for assert.operator. Closes #39
2012-03-21 07:17:39 -04:00
Jake Luer
644cc43629
Release 0.5.2
2012-03-21 07:16:37 -04:00
Jake Luer
eec9db7032
Added assert.fail. Closes #40
2012-03-21 07:11:29 -04:00
Jake Luer
28f389343a
better error message for assert.operator. Closes #39
2012-03-21 07:03:35 -04:00
Jake Luer
09317336a8
[refactor] Assertion#property to use getPathValue property
2012-03-18 18:06:50 -04:00
Jake Luer
294ca183c9
added getPathValue utility helper
2012-03-18 18:05:55 -04:00
Jake Luer
d4e1f9ddd0
removed todo about browser build
2012-03-18 17:56:15 -04:00
Jake Luer
cc3ce5b894
version bumb 0.6.0
2012-03-18 17:47:41 -04:00
Jake Luer
30e59bcb99
[feature] browser uses different error.js
2012-03-18 17:41:13 -04:00
Jake Luer
8e11ad7f04
[refactor] error without chai.fail
2012-03-18 17:40:54 -04:00
Jake Luer
02e5823b9a
Assertion & interfaces use new utils helper export
2012-03-18 17:21:41 -04:00
Jake Luer
aa48661f10
[refactor] primary export for new plugin util usage
2012-03-18 17:21:19 -04:00
Jake Luer
17ef1c0b97
added util index.js helper
2012-03-18 17:20:21 -04:00
Jake Luer
2a7e12e0a4
added 2012 to copyright headers
2012-03-18 17:19:54 -04:00
Jake Luer
b91a4e128a
Release 0.5.1
2012-03-14 17:01:37 -04:00
Jake Luer
bacfc3d799
Added asset#isDefined. Closes #37 .
2012-03-14 16:51:21 -04:00
Anand Patil
f239c5ad13
Added DeepEqual assertions
2012-03-09 17:09:15 +00:00
Jake Luer
4165504213
dev docs update for Assertion#assert
2012-03-07 13:31:17 -05:00
Jake Luer
a1e0ae0c06
Release 0.5.0
2012-03-07 13:05:44 -05:00
Jake Luer
c6476c96c1
[bug] on inspect of reg on n 0.4.12
2012-03-07 11:51:36 -05:00
Jake Luer
9ab32d7757
Merge branch 'bug/33-throws'
2012-03-07 11:42:50 -05:00
Jake Luer
17a83f34e4
updated #throw docs
2012-03-07 11:39:09 -05:00
Jake Luer
fc002ee433
Should interface supports multiple throw parameters
2012-03-07 11:37:07 -05:00
Jake Luer
c2b0ab64f2
Update Assertion#throw to support strings and type checks.
2012-03-07 11:33:04 -05:00
Veselin Todorov
f1e6a9abb3
Merge branch 'master' into empty-object
...
* master:
don't switch act/exp
Update the compiled verison.
Add `assert.operator`.
Notes on messages. #22
browser build
have been test
below tests
browser build
remove unnecessary fail export
full support for actual/expected where relevant
Assertion.assert support expected value
clean up error
2012-03-07 17:49:20 +02:00
Jake Luer
df1a82dd1e
don't switch act/exp
2012-03-03 23:21:01 -05:00
Veselin Todorov
c7cc03f059
Add assert.operator
.
2012-03-02 15:49:07 +02:00
Jake Luer
ea4a33a51a
Notes on messages. #22
2012-03-01 19:43:13 -05:00
Jake Luer
30e13addfa
remove unnecessary fail export
2012-03-01 19:27:51 -05:00
Jake Luer
a6447e809e
full support for actual/expected where relevant
2012-03-01 19:18:31 -05:00
Jake Luer
56db8a6b09
Assertion.assert support expected value
2012-03-01 18:56:18 -05:00
Jake Luer
0352892e19
clean up error
2012-03-01 18:55:45 -05:00
Veselin Todorov
670f128970
Add object & sane arguments support to Assertion#empty
.
2012-02-29 21:51:42 +02:00
Jake Luer
dc2ea1324d
Release 0.4.2
2012-02-28 13:00:08 -05:00
Jo Liss
7885f62e81
Document that "should" works in browsers other than IE
...
I tested this with FF 10, Chrome 18, Safari 5.1 (all work), and
IE 9 (does not work).
2012-02-27 22:57:41 +01:00
Veselin Todorov
63e1349473
Falsey -> falsy.
2012-02-27 22:33:24 +02:00
Veselin Todorov
5c9e675aea
Add test for assert.isNumber
.
2012-02-27 22:10:02 +02:00
Veselin Todorov
14cd7f720c
Fix assert.isNotNull
implementation.
2012-02-27 21:55:56 +02:00
Veselin Todorov
95172dafaa
Fix assert.isNull
implementation.
2012-02-27 21:55:13 +02:00
Jake Luer
eee7fb3eed
Release 0.4.1
2012-02-26 13:09:08 -05:00
Veselin Todorov
5d6cd00ec0
Fix type of actual checks.
2012-02-25 20:25:32 +02:00
Jake Luer
567656290b
Release 0.4.0
2012-02-25 12:19:47 -05:00
Veselin Todorov
a9e53d5662
Update closeTo()
docs.
2012-02-25 00:06:08 +02:00
Veselin Todorov
c735d7ea04
Add Assertion.closeTo()
method.
2012-02-25 00:04:26 +02:00
Veselin Todorov
6857d0ccc4
Update example for .satisfy()
.
2012-02-24 22:44:52 +02:00
Veselin Todorov
92b8ffe589
Add Assertion.satisfy()
method.
2012-02-24 22:36:25 +02:00
Veselin Todorov
08371a4eee
Add respondTo
Assertion.
2012-02-24 21:54:12 +02:00
Jake Luer
be20799f37
Release 0.3.4
2012-02-23 00:09:29 -05:00
Jake Luer
ac0cb859bf
inline comment typos for #15
2012-02-22 23:54:31 -05:00
Jake Luer
937474cd25
includeStack documentation for all interfaces
2012-02-22 23:45:58 -05:00
Jeff Barczewski
105fb02e98
Allow inclusion of stack trace for Assert error messages to be configurable
...
```javascript
Assertion.includeStack = true; // enable stack trace to be included on error
```
Default value is false, resulting in less cluttered error results.
Allow user to configure this to true, to see stack trace to where error
occurred.
2012-02-22 14:17:49 -06:00
Jake Luer
de582d61d4
Release 0.3.3
2012-02-12 18:07:08 -05:00
John Firebaugh
1c6f9a0fdd
Make Assertion.prototype properties configurable
...
This allows plugins to install object-specific behavior
for built-in assertions.
2012-02-12 14:45:08 -08:00
Jake Luer
f35cab9f2a
Release 0.3.2
2012-02-10 11:38:51 -05:00
Jake Luer
3fdd508721
docs cleanup
2012-02-10 11:32:44 -05:00
Jake Luer
abdcf3786d
Release 0.3.1
2012-02-07 17:34:55 -05:00
Jake Luer
912208266b
node 0.4.x compat
2012-02-07 17:32:49 -05:00
Jake Luer
73c50bacbf
Release 0.3.0
2012-02-07 16:59:45 -05:00
Jake Luer
0a7a4fc4d4
remove html/json/headers testign
...
these can be implemented in a plugin
2012-02-07 16:41:29 -05:00
Jake Luer
67024ae9f5
regex error.message testing
2012-02-07 16:39:08 -05:00
Jake Luer
3d964e5479
tests for using plugins
2012-02-07 16:13:17 -05:00
Domenic Denicola
bea973fa11
Make chai.use
a no-op if the function has already been used.
...
Fixes issue discussed in #9 , where if two test scripts call `chai.use(extension)`, property redefinition errors occur.
2012-02-06 11:38:14 -05:00
Jake Luer
2ad9f016f7
Release 0.2.4
2012-02-02 00:56:04 -05:00
Jake Luer
dc2c2ddab2
added in past tense for been
2012-02-02 00:54:20 -05:00
Jake Luer
3fe2a365b3
Release 0.2.3
2012-02-01 22:04:48 -05:00
Jake Luer
4bff33622b
try that again
2012-02-01 22:03:33 -05:00
Jake Luer
19011701aa
Release 0.2.2
2012-02-01 21:57:59 -05:00
Jake Luer
0b215480db
added been
(past of be
) alias
2012-02-01 21:57:12 -05:00
Jake Luer
58244843c6
Release 0.2.1
2012-01-29 20:27:13 -05:00
Jake Luer
2d35f8f4cd
added Throw, with a capital T, as an alias to throw
( #7 )
...
meddlesome browsers beware!
2012-01-29 20:25:56 -05:00
Jake Luer
431d431359
Release 0.2.0
2012-01-26 19:17:59 -05:00
Jake Luer
cf896bf138
interfaces now work with use
2012-01-26 19:14:08 -05:00
Jake Luer
c0e5d214dc
simple .use function. See #9 .
2012-01-26 19:13:41 -05:00
Jake Luer
f8dbcf9f64
Release 0.1.7
2012-01-25 16:34:28 -05:00
Jake Luer
48f38150ad
should
interface patch for primitives support in FF
2012-01-25 16:29:22 -05:00
Vinay Pulim
9a644bfcf4
fix isObject()
2012-01-25 15:33:50 -05:00
Jake Luer
baf0f63bf1
add instanceof alias instanceOf
. #6
2012-01-25 14:08:04 -05:00
Jake Luer
78b5bb429b
some tests for assert module
2012-01-21 18:38:18 -05:00
Jake Luer
70a045afa4
Release 0.1.6
2012-01-02 01:14:24 -05:00
Jake Luer
27ecce8567
commenting for assert interface
2012-01-02 01:12:52 -05:00
Jake Luer
b93353afb3
Release 0.1.5
2012-01-02 00:51:51 -05:00
Jake Luer
b0b80c5229
type in should.not.equal
2012-01-02 00:49:41 -05:00
Jake Luer
5ddcb7922b
added should.exist and should.not.exist
2012-01-02 00:45:25 -05:00
Jake Luer
c5e98d484f
Release 0.1.4
2011-12-26 13:19:22 -05:00
Jake Luer
4fd6d04acc
inspect typos
2011-12-24 13:20:28 -05:00
Jake Luer
b1de9988e5
added strict equal + negatives and ifError
2011-12-24 13:19:17 -05:00
Jake Luer
6cb347e5cb
interface assert had doesNotThrow
2011-12-24 13:11:31 -05:00
Jake Luer
30cdcefb2d
Fix typo for instanceof docs. Closes #3 [ci skip]
2011-12-19 07:48:10 -05:00
Jake Luer
c6971bac53
Release 0.1.3
2011-12-18 09:07:46 -05:00
Jake Luer
a853363568
much cleaner reporting string on error.
2011-12-18 09:04:51 -05:00
Jake Luer
0671961e86
Release 0.1.2
2011-12-18 07:38:57 -05:00
Jake Luer
cfbb439891
[docs] for upcoming 0.1.2
2011-12-18 07:37:11 -05:00
Jake Luer
efd14a8ec5
added header/status/html/json
2011-12-18 07:01:49 -05:00
Jake Luer
7c64642946
should.throw & should.not.throw shortcuts
2011-12-18 06:41:06 -05:00
Jake Luer
89b107ca77
improved throw
type detection and messaging
2011-12-18 06:40:44 -05:00
Jake Luer
0165fc068a
contain is now include
… keys modifier is now contain
2011-12-18 05:56:21 -05:00
Jake Luer
8fcf02c266
removed object() test
2011-12-18 05:18:40 -05:00
Jake Luer
bbdb2a49b1
removed #respondTo
2011-12-18 04:56:48 -05:00
Jake Luer
84694a7e55
replaced __defineGetter__ with defineProperty for all uses
2011-12-18 04:51:36 -05:00
Jake Luer
2894cf4d5d
updated doc comments for assert interface
2011-12-16 09:50:18 -05:00
Jake Luer
c22ba45471
Release 0.1.1
2011-12-16 06:59:45 -05:00
Jake Luer
1c516625b4
more comments to assertions for docs
2011-12-16 06:14:47 -05:00
Jake Luer
caae4a1f83
assertions fully commented, browser library updated
2011-12-15 17:50:28 -05:00
Jake Luer
d638f76b28
assertion component completely commented for documentation
2011-12-15 15:06:41 -05:00
Jake Luer
fd54107a3f
Release 0.1.0
2011-12-15 08:02:26 -05:00
Jake Luer
9939955761
assert#arguments getter
2011-12-15 07:58:14 -05:00
Jake Luer
c7b8eea2ee
copyright notices … think i got them all
2011-12-15 07:21:53 -05:00
Jake Luer
3f0983a30a
moved expect interface to own file for consistency
2011-12-15 07:21:23 -05:00
Jake Luer
cba6970e45
assert ui deepEqual
2011-12-15 07:09:21 -05:00
Jake Luer
0a2fc7671a
moved fail to primary export
2011-12-15 05:54:23 -05:00
Jake Luer
eb844a1a27
within, greaterThan, object, keys,
2011-12-15 05:34:58 -05:00
Jake Luer
2bda378e30
Aliases
2011-12-15 05:34:26 -05:00
Jake Luer
4fb306a7a1
Assertion#property now correctly works with negate and undefined values
2011-12-15 05:34:06 -05:00
Jake Luer
b2eb61848b
error message language matches should
2011-12-15 05:33:25 -05:00
Jake Luer
c4a89f3b91
Assertion#respondTo
2011-12-15 05:32:09 -05:00
Jake Luer
e9169988fb
Assertion now uses inspect util
2011-12-15 05:31:35 -05:00
Jake Luer
6e250c1c0c
should is exported
2011-12-15 05:30:39 -05:00
Jake Luer
f38ed53f2d
AssertionError __proto__ from Error.prototype
2011-12-15 05:29:51 -05:00
Jake Luer
78b104f1f8
add should interface for should.js compatibility
2011-12-15 05:29:20 -05:00
Jake Luer
f76eedd46f
moved eql to until folder and added inspect from (joyent/node)
2011-12-15 05:28:55 -05:00
Jake Luer
ee44cf1619
multiple .property assertions
2011-12-14 15:57:52 -05:00
Jake Luer
933e4cc7f0
added deep equal from node
2011-12-14 15:56:56 -05:00
Jake Luer
cdc7d60a31
Release 0.0.2
2011-12-07 03:05:34 -05:00
Jake Luer
e694bdd81c
cleaner output on error
2011-12-07 03:04:08 -05:00