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
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