An open API service indexing awesome lists of open source software.

https://github.com/jamiemason/jasmine-matchers-snippets

Snippets for Jest & Jasmine Matchers.
https://github.com/jamiemason/jasmine-matchers-snippets

Last synced: about 1 month ago
JSON representation

Snippets for Jest & Jasmine Matchers.

Awesome Lists containing this project

README

        

# Jasmine Matchers Snippets

Snippets to ease development with [Jasmine Matchers](https://github.com/JamieMason/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 t`o`h`ave`a`rray`o`f`b`ooleans`.

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`.