8000 feat(mocha) additional snippets · andrew-codes/vscode-snippets@15b01c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15b01c1

Browse files
committed
feat(mocha) additional snippets
1 parent bc73787 commit 15b01c1

File tree

1 file changed

+78
-11
lines changed

1 file changed

+78
-11
lines changed
Lines changed: 78 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,119 @@
11
{
22
"before": {
33
"prefix": "ba",
4-
"body": ["before(() => {", "\t$1", "});$0"],
5-
"description": "Before "
4+
"body": [
5+
"before(() => {",
6+
"\t$1",
7+
"});$0"
8+
],
9+
"description": "Before all"
610
},
711
"beforeEach": {
812
"prefix": "be",
9-
"body": ["beforeEach(() => {", "\t$1", "});$0"],
13+
"body": [
14+
"beforeEach(() => {",
15+
"\t$1",
16+
"});$0"
17+
],
1018
"description": "Before each"
1119
},
1220
"After": {
1321
"prefix": "aa",
14-
"body": ["after(() => {", "\t$1", "});$0"],
22+
"body": [
23+
"after(() => {",
24+
"\t$1",
25+
"});$0"
26+
],
1527
"description": "After"
1628
},
1729
"afterEach": {
1830
"prefix": "ae",
19-
"body": ["afterEach(() => {", "\t$1", "});$0"],
31+
"body": [
32+
"afterEach(() => {",
33+
"\t$1",
34+
"});$0"
35+
],
2036
"description": "After each"
2137
},
2238
"suite": {
2339
"prefix": "ste",
24-
"body": ["suite('$1', () => {", "\t$2", "});$0"],
40+
"body": [
41+
"suite('$1', () => {",
42+
"\t$2",
43+
"});$0"
44+
],
2545
"description": "Suite"
2646
},
2747
"suiteSetup": {
2848
"prefix": "steup",
29-
"body": ["suiteSetup(() => {", "\t$1", "});$0"],
49+
"body": [
50+
"suiteSetup(() => {",
51+
"\t$1",
52+
"});$0"
53+
],
3054
"description": "Suite setup"
3155
},
3256
"setup": {
3357
"prefix": "setup",
34-
"body": ["setup(() => {", "\t$1", "});$0"],
58+
"body": [
59+
"setup(() => {",
60+
"\t$1",
61+
"});$0"
62+
],
3563
"description": "Setup"
3664
},
3765
"suiteTeardown": {
3866
"prefix": "stedown",
39-
"body": ["suiteTeardown(() => {", "\t$1", "});$0"],
67+
"body": [
68+
"suiteTeardown(() => {",
69+
"\t$1",
70+
"});$0"
71+
],
4072
"description": "Suite teardown"
4173
},
4274
"teardown": {
4375
"prefix": "teardown",
44-
"body": ["teardown(() => {", "\t$1", "});$0"],
76+
"body": [
77+
"teardown(() => {",
78+
"\t$1",
79+
"});$0"
80+
],
4581
"description": "Teardown"
4682
},
4783
"test": {
4884
"prefix": "tst",
49-
"body": ["test('$1', () => {", "\t$2", "});"],
85+
"body": [
86+
"test('$1', () => {",
87+
"\t$2",
88+
"});"
89+
],
5090
"description": "Test"
91+
},
92+
"it": {
93+
"prefix": "it",
94+
"body": [
95+
"it('$1', () => {",
96+
"\t$2",
97+
"}$0"
98+
],
99+
"describe": "It"
100+
},
101+
"describe": {
102+
"prefix": "dsc",
103+
"body": [
104+
"describe('$1', () => {",
105+
"\t$2",
106+
"}$0"
107+
],
108+
"describe": "Describe"
109+
},
110+
"context": {
111+
"prefix": "ctx",
112+
"body": [
113+
"context('$1', () => {",
114+
"\t$2",
115+
"}$0"
116+
],
117+
"describe": "Context"
51118
}
52119
}

0 commit comments

Comments
 (0)
0