forked from caderek/benny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
59 lines (56 loc) · 1.26 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"Benny single suite file - require": {
"prefix": "benny",
"body": [
"const { add, complete, cycle, save, suite } = require('benny')",
"",
"module.exports = suite(",
" '$1',",
"",
" $3",
"",
" cycle(),",
" complete(),",
" save({ file: '$2' }),",
")"
],
"description": "Creates a template with imports and default suite setup"
},
"Benny single suite file - ES/TS modules": {
"prefix": "esbenny",
"body": [
"import { add, complete, cycle, save, suite } from 'benny'",
"",
"export default suite(",
" '$1',",
"",
" $3",
"",
" cycle(),",
" complete(),",
" save({ file: '$2' }),",
")"
],
"description": "Creates a template with imports and default suite setup"
},
"Benny add suite": {
"prefix": "bsuite",
"body": [
"suite(",
" '$1',",
"",
" $3",
"",
" cycle(),",
" complete(),",
" save({ file: '$2' }),",
")"
],
"description": "Creates template for standalone suite"
},
"Benny add suite case": {
"prefix": "badd",
"body": ["add('$1', () => {", " $2", "}),"],
"description": "Creates template for suite case"
}
}