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
Jake Luer
1e2a5a6004
empty deep equal
2011-12-07 01:50:28 -05:00
Jake Luer
8f76eaa9a7
assertion cleanup
2011-12-07 01:10:44 -05:00
Jake Luer
dd05df3712
most of the basic assertions
2011-12-07 00:26:47 -05:00
Jake Luer
90fe9883ff
allow no parameters to assertion error
2011-12-07 00:26:23 -05:00
Jake Luer
2fa2904b88
name change
2011-12-07 00:26:02 -05:00
Jake Luer
1f7ffd64b6
assertion error instance
2011-12-06 09:22:31 -05:00
Jake Luer
7846d25be2
main exports: assert() & expect()
2011-12-06 09:22:24 -05:00
Jake Luer
6d31c7ced9
initialize
2011-12-06 08:18:01 -05:00