1.0.11 • Published 9 years ago
jasmine2-matchers v1.0.11
Custom Matchers for Jasmine2
Matchers
toBeANumber()
toBeAString()
toBeAnArray()
toBeEmpty()
toBeAnInstanceOf(constructor: Function)
toBeOfType(type: string)
toBeOneOf(lists)
toThrowAnError(name: string)
Infos
This repository simply add custom matchers to Jasmine, unlike all the other (that I have found) this is specialy design for Jasmine2.
If you are using Typescript you can use the provide definition in the definitions
directory.
If you are using dtsm simply add this into your npm dependencies and dtsm link npm it.
Feel free to add any matcher you want.
RoadMap
Change error messageAdd unit tests- Create a script that generate the definition
- What peole will ask