-
Notifications
You must be signed in to change notification settings - Fork 0
Chai assert comparsion
Tomasz Jakub Rup edited this page Feb 24, 2018
·
7 revisions
Chai (assert) | Jasmine + jasmine-extra-matchers |
---|---|
isOk() | toBeTruthy() |
isNotOk() | toBeFalsy() |
equal() | toEqual() |
notEqual() | not.toEqual() |
strictEqual() | toBe() |
notStrictEqual() | not.toBe() |
deepEqual() | toEqual() |
notDeepEqual() | not.toEqual() |
isAbove() | toBeGreaterThan() |
isAtLeast() | toBeGreaterThanOrEqual() |
isBelow() | toBeLessThan() |
isAtMost() | toBeLessThanOrEqual() |
isTrue() | toBeTrue() |
isNotTrue() | not.toBeTrue() |
isFalse() | toBeFalse() |
isNotFalse() | not.toBeFalse() |
isNull() | toBeNull() |
isNotNull() | not.toBeNull() |
isNaN() | toBeNaN() |
isNotNaN() | not.toBeNaN() |
exists() | toExists() |
notExists() | not.toExists() |
isUndefined() | toBeUndefined() |
isDefined() | not.toBeUndefined() |
isFunction() | toBeFunction() |
isNotFunction() | not.toBeFunction() |
isString() | toBeString() |
isNotString() | not.toBeString() |
isNumber() | toBeNumeric() |
isNotNumber() | not.toBeNumeric() |
isFinite() | toBeFinite() |
isBoolean() | toBeBoolean() |
isNotBoolean() | not.toBeBoolean() |
typeOf() | toBeTypeOf() |
notTypeOf() | not.toBeTypeOf() |
instanceOf() | toBeInstanceOf() |
notInstanceOf() | not.toBeInstanceOf() |
include() | toContain() |
notInclude() | not.toContain() |
deepInclude() | toEqual() |
notDeepInclude() | not.toEqual() |
nestedInclude() | - |
notNestedInclude() | - |
deepNestedInclude() | - |
notDeepNestedInclude() | - |
ownInclude() | - |
notOwnInclude() | - |
deepOwnInclude() | - |
notDeepOwnInclude() | - |
match() | toMatch() |
notMatch() | not.toMatch() |
property() | hasProperty() |
notProperty() | not.hasProperty() |