mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
add js testing snippets
This commit is contained in:
8
emacs/.doom.d/snippets/js-mode/Jest/afe
Normal file
8
emacs/.doom.d/snippets/js-mode/Jest/afe
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: afterEachBlock
|
||||||
|
# key: afe
|
||||||
|
# --
|
||||||
|
|
||||||
|
afterEach('$1', () => {
|
||||||
|
$0
|
||||||
|
})
|
||||||
8
emacs/.doom.d/snippets/js-mode/Jest/bfe
Normal file
8
emacs/.doom.d/snippets/js-mode/Jest/bfe
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: beforeEachBlock
|
||||||
|
# key: bfe
|
||||||
|
# --
|
||||||
|
|
||||||
|
beforeEach('$1', () => {
|
||||||
|
$0
|
||||||
|
})
|
||||||
8
emacs/.doom.d/snippets/js-mode/Jest/desc
Normal file
8
emacs/.doom.d/snippets/js-mode/Jest/desc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: describeBlock
|
||||||
|
# key: desc
|
||||||
|
# --
|
||||||
|
|
||||||
|
describe('$1', () => {
|
||||||
|
$0
|
||||||
|
})
|
||||||
8
emacs/.doom.d/snippets/js-mode/Jest/it
Normal file
8
emacs/.doom.d/snippets/js-mode/Jest/it
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: itBlock
|
||||||
|
# key: it
|
||||||
|
# --
|
||||||
|
|
||||||
|
it('$1', () => {
|
||||||
|
$0
|
||||||
|
})
|
||||||
10
emacs/.doom.d/snippets/js-mode/Jest/test
Normal file
10
emacs/.doom.d/snippets/js-mode/Jest/test
Normal 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
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user