ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Jasmine Matchers Snippets

by JamieMason ST2/ST3

Snippets for Jest & Jasmine Matchers.

Details

Installs

  • Total 1K
  • Win 589
  • OS X 542
  • Linux 215
Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29
Windows 0 1 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1 0 2 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 2 0 0 0 1 0 0 1 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 2
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Jasmine Matchers Snippets

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

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.