add js testing snippets

This commit is contained in:
Thomas Ruoff
2020-11-15 22:22:07 +01:00
parent fdd4167058
commit ff27e546b6
5 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: afterEachBlock
# key: afe
# --
afterEach('$1', () => {
$0
})

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: beforeEachBlock
# key: bfe
# --
beforeEach('$1', () => {
$0
})

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: describeBlock
# key: desc
# --
describe('$1', () => {
$0
})

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: itBlock
# key: it
# --
it('$1', () => {
$0
})

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# uuid: 190f78b4-17ec-429e-aaf1-3231726ca580
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: testBlock
# key: test
# --
test('should $1', () => {
$0
})