Snippets to ease development with Jasmine Matchers.
In order to use the snippets, just enter the shortcode and press Tab.
Each snippet should be easy to remember as they follow the first and capital letters of each matcher, such as to
have
array
of
booleans
.
Put an n at the beginning for .not
cases;
- tb creates
expect(instance).toBe(instance)
- ntb creates
expect(instance).not.toBe(instance)
$1
, $2
etc shows the position where the caret will appear after you've inserted a snippet. Pressing Tab again will move the caret to the next $n
.