Commit graph

1199 commits

Author SHA1 Message Date
Keith Cirkel
22fbd650ab Merge pull request #522 from austinpray/spelling
Fixes spelling error "everthing" -> "everything"
2015-09-29 10:10:29 +01:00
Austin Pray
936e7575f7 Fixes spelling error "everthing" -> "everything" 2015-09-28 21:29:41 -05:00
Keith Cirkel
5f4dcd272d Merge pull request #521 from jurko-gospodnetic/add-an-error-example
document how the `new Error` type gets detected by the `a`/`an` matcher
2015-09-22 16:49:46 +01:00
Jurko
27b6f7db58 document how the new Error type gets detected by the a/an matcher 2015-09-22 17:28:05 +02:00
Keith Cirkel
d7d9420a24 Merge pull request #503 from astorije/astorije/expected-types
Checking that argument given to expect is of the right type when using with include
2015-09-21 22:04:26 +01:00
Jérémie Astori
1f8c65135d Remove multi-type support for a/an assertion 2015-09-12 13:04:56 +00:00
Jérémie Astori
675b51b3ad Add a utility to enforce allowed types tested by an assertion 2015-09-12 12:59:51 +00:00
Jérémie Astori
0acb2ec8f5 Use new feature of a/an assertion to check type of tested object when using include assertion 2015-09-12 10:14:01 +00:00
Jérémie Astori
d27ceb54a4 Improve message of multi-type a/an assertions 2015-09-12 10:14:01 +00:00
Jérémie Astori
5eb39067ad Add support of multiple types in an/a assertions for the BDD API, with naive message 2015-09-12 10:14:01 +00:00
Jérémie Astori
cf0e3a5677 Check that expected type for include is an array, an object, or a string, in a naive way 2015-09-12 10:14:01 +00:00
Keith Cirkel
df954ccacf Merge pull request #516 from keithamus/release-3.2.0
chai@3.3.0
2015-09-11 22:42:31 +01:00
Keith Cirkel
13a90097eb chai@3.3.0 2015-09-11 22:36:05 +01:00
Keith Cirkel
cf9f5d99d7 Merge pull request #512 from dereke/master
fixed expect('').to.contain('') so it passes
2015-09-11 22:20:30 +01:00
Keith Cirkel
5044dc088e Merge pull request #514 from kpdecker/prop-trace
Fix stack trace tracking for property asserts
2015-09-08 10:03:06 +01:00
kpdecker
b6b84e5631 Fix stack trace tracking for property asserts
The ssfi parameter was not being updated for these methods, which ended up causing the trace to be omitted.

Fixes #358
2015-09-08 02:15:47 -05:00
Derek Ekins
eaba0be444 fixed expect('').to.contain('') so it passes 2015-09-01 13:59:39 +01:00
Keith Cirkel
a42ac436bb Merge pull request #496 from astorije/astorije/frozen-errors
Make sure TypeErrors thrown by frozen are caught
2015-08-10 10:13:16 +01:00
Jérémie Astori
1cc56c88eb Remove some trailing whitespaces 2015-07-26 19:43:02 +00:00
Jérémie Astori
ffc59fccd5 Make sure TypeErrors thrown by extensible are treated in a ES6 way and test these 2015-07-26 19:42:46 +00:00
Jérémie Astori
9b71590fe3 Make sure TypeErrors thrown by sealed are treated in a ES6 way and test these 2015-07-26 19:31:48 +00:00
Jérémie Astori
eae67c0d5c Make sure TypeErrors thrown by frozen are treated in a ES6 way and test these 2015-07-26 17:43:48 +00:00
Keith Cirkel
7d36b5aa4e Merge pull request #500 from wraithan/add-assert-gte-lte
isAtLeast, isAtMost assertions added to assert interface
2015-07-24 23:07:21 +01:00
Keith Cirkel
8aea7a55df Merge pull request #499 from Daveloper87/empty_string_check_fix
Shortened check for empty
2015-07-24 22:55:23 +01:00
Wraithan (Chris McDonald)
3c681e2dce isAtLeast, isAtMost assertions added to assert interface 2015-07-24 09:25:56 -07:00
Dai
bba85d0f37 Simplified .empty 2015-07-24 06:55:24 +01:00
Keith Cirkel
bad5fa736f Merge pull request #495 from cezarykluczynski/assertions-docblocks-reorder
JSDoc blocks aligned with corresponding functions
2015-07-20 19:50:11 +01:00
Cezary Kluczyński
b9730e070f JSDoc blocks aligned with corresponding functions 2015-07-20 20:32:46 +02:00
Keith Cirkel
3bd4d49871 Merge pull request #494 from cezarykluczynski/assertions-is-not-false-is-not-true
isNotFalse, isNotTrue assertions added
2015-07-20 19:11:36 +01:00
Cezary Kluczyński
5bd86c2b38 isNotTrue, isNotFalse assertions added 2015-07-20 19:29:04 +02:00
Keith Cirkel
4e18d2a493 Merge pull request #492 from keithamus/release-3.2.0
chai@3.2.0
2015-07-19 18:02:19 +01:00
Keith Cirkel
9fb29cd0d6 chai@3.2.0 2015-07-19 17:59:47 +01:00
Keith Cirkel
40cdaa3400 Merge pull request #489 from astorije/astorije/aliases
Various work on aliases
2015-07-19 17:58:14 +01:00
Jérémie Astori
e5071edd8b Invert assertions and aliases for is* assertions to make the documentation and code consistent with other is* assertions 2015-07-18 23:21:20 +00:00
Jérémie Astori
3be31001d1 Add tests for throws aliases 2015-07-18 23:14:45 +00:00
Jérémie Astori
9e14164b67 Make throws aliases consistent across examples and definitions 2015-07-18 23:14:45 +00:00
Jérémie Astori
11aa743472 Add aliases (and tests) for assert.ok and assert.notOk to match the other isSomething assertions 2015-07-18 23:14:45 +00:00
Jérémie Astori
40dc848842 Add tests for frozen, sealed and extensible aliases 2015-07-18 23:08:12 +00:00
Keith Cirkel
0d5e87a825 Merge pull request #490 from astorije/patch-2
Fix wrong call to the underlying method when checking if an object is frozen
2015-07-18 20:56:51 +01:00
Jérémie Astori
909616e0ad Fix wrong call to the underlying method when checking if an object is frozen 2015-07-18 01:40:02 +02:00
Jérémie Astori
ee573496d4 Add aliases to extensible, sealed and frozen properties for consistency 2015-07-17 23:30:45 +00:00
Jérémie Astori
3b980e5dd3 Fix docstring regarding assert.notFrozen 2015-07-17 23:30:03 +00:00
Keith Cirkel
9c7f6b6ac9 Merge pull request #486 from jluchiji/master
Added links to contribution guidelines to README
2015-07-17 17:06:23 +01:00
Denis Luchkin-Zhou
d1597ec47a Added links to contribution guidelines to README 2015-07-17 11:40:14 -04:00
Keith Cirkel
36873c6cbf Merge pull request #484 from couchand/patch-1
Add respondsTo and satisfies as aliases
2015-07-17 16:33:18 +01:00
Keith Cirkel
e4e439be70 Merge pull request #485 from jluchiji/master
Fixing a typo in the `getProperties()` utility
2015-07-17 16:31:31 +01:00
Denis Luchkin-Zhou
65180716d6 Fixing a typo in the getProperties() utility
...where `subject` should apparently be `object`.
2015-07-17 11:23:45 -04:00
Andrew Couch
802fa5e0bb Add respondsTo and satisfies as aliases 2015-07-17 11:14:17 -04:00
Keith Cirkel
6ee53e438a Merge pull request #482 from keithamus/reencrypt-travis-api-key
Re-encrypt travis API key
2015-07-16 22:55:26 +01:00
Keith Cirkel
8cefac8ebe Re-encrypt travis API key
https://twitter.com/Keithamus/status/621789900250193920
2015-07-16 22:53:59 +01:00