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

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

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

Last synced: 4 months ago
JSON representation

ES6 Snippets for Jest & Jasmine Matchers.

Awesome Lists containing this project

README

        

# Jasmine Matchers ES6 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`.