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.
- Host: GitHub
- URL: https://github.com/jamiemason/jasmine-matchers-es6-snippets
- Owner: JamieMason
- License: mit
- Created: 2016-02-23T11:25:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T18:48:27.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T19:34:36.066Z (8 months ago)
- Homepage: https://packagecontrol.io/packages/Jasmine%20Matchers%20ES6%20Snippets
- Size: 39.1 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.