Uploaded by Ayaan

jasmine matchers

advertisement
Arrays
toBeArray
toBeArrayOfBooleans
toBeArrayOfNumbers
toBeArrayOfObjects
toBeArrayOfSize
toBeArrayOfStrings
toBeEmptyArray
toBeNonEmptyArray
Booleans
toBeBoolean
toBeFalse
toBeTrue
Dates
toBeAfter
toBeBefore
toBeDate
toBeIso8601
Functions and Errors
toBeFunction
toThrowAnyError
toThrowErrorOfType
Numbers
toBeCalculable
toBeEvenNumber
toBeNumber
toBeOddNumber
toBeWholeNumber
toBeWithinRange
Objects
toBeEmptyObject
toBeNonEmptyObject
toBeObject
toHaveArray
toHaveArrayOfBooleans
toHaveArrayOfNumbers
toHaveArrayOfObjects
toHaveArrayOfSize
toHaveArrayOfStrings
toHaveBoolean
toHaveCalculable
toHaveDate
toHaveDateAfter
toHaveDateBefore
toHaveEmptyArray
toHaveEmptyObject
toHaveEmptyString
toHaveEvenNumber
toHaveFalse
toHaveHtmlString
toHaveIso8601
toHaveJsonString
toHaveMember
toHaveMethod
toHaveNonEmptyArray
toHaveNonEmptyObject
toHaveNonEmptyString
toHaveNumber
toHaveNumberWithinRange
toHaveObject
toHaveOddNumber
toHaveString
toHaveStringLongerThan
toHaveStringSameLengthAs
toHaveStringShorterThan
toHaveTrue
toHaveWhitespaceString
toHaveWholeNumber
toImplement
Strings
toBeEmptyString
toBeHtmlString
toBeJsonString
toBeLongerThan
toBeNonEmptyString
toBeSameLengthAs
toBeShorterThan
toBeString
toBeWhitespace
toEndWith
toStartWith
Download