jasmine2-matchers
v1.0.11
Published
Matchers for jasmine2
Downloads
25
Readme
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 message~~
- ~~Add unit tests~~
- Create a script that generate the definition
- What peole will ask