Skip to content

Commit 76aa772

Browse files
authored
fix: Wrong parenthesis placement in Vitest snippets (#48)
Fix parenthesis placement #47
1 parent 3775a98 commit 76aa772

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Diff for: snippets/vitest/vitest.code-snippets

+20-20
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,54 @@
1313
"Vitest Describe": {
1414
"prefix": "videscribe",
1515
"body": [
16-
"describe('${1:name}'), () => {",
16+
"describe('${1:name}', () => {",
1717
"\t${0}",
18-
"}"
18+
"})"
1919
],
2020
"description": "Vitest Describe"
2121
},
2222
"Vitest Describe - Concurrent": {
2323
"prefix": "videscribe-concurrent",
2424
"body": [
25-
"describe.concurrent('${1:name}'), () => {",
25+
"describe.concurrent('${1:name}', () => {",
2626
"\t${0}",
27-
"}"
27+
"})"
2828
],
2929
"description": "Vitest Describe Concurrent"
3030
},
3131
"Vitest It": {
3232
"prefix": "viit",
3333
"body": [
34-
"it('${1:name}'), () => {",
34+
"it('${1:name}', () => {",
3535
"\t${0}",
36-
"}"
36+
"})"
3737
],
3838
"description": "Vitest It"
3939
},
4040
"Vitest It - Concurrent": {
4141
"prefix": "viit-concurrent",
4242
"body": [
43-
"it.concurrent('${1:name}'), () => {",
43+
"it.concurrent('${1:name}', () => {",
4444
"\t${0}",
45-
"}"
45+
"})"
4646
],
4747
"description": "Vitest It Concurrent"
4848
},
4949
"Vitest It - Async": {
5050
"prefix": "viit-async",
5151
"body": [
52-
"it('${1:name}'), async () => {",
52+
"it('${1:name}', async () => {",
5353
"\t${0}",
54-
"}"
54+
"})"
5555
],
5656
"description": "Vitest It Async"
5757
},
5858
"Vitest It - Async Concurrent": {
5959
"prefix": "viit-async-concurrent",
6060
"body": [
61-
"it.concurrent('${1:name}'), async () => {",
61+
"it.concurrent('${1:name}', async () => {",
6262
"\t${0}",
63-
"}"
63+
"})"
6464
],
6565
"description": "Vitest It Async Concurrent"
6666
},
@@ -74,36 +74,36 @@
7474
"Vitest Test": {
7575
"prefix": "vitest",
7676
"body": [
77-
"test('${1:name}'), () => {",
77+
"test('${1:name}', () => {",
7878
"\t${0}",
79-
"}"
79+
"})"
8080
],
8181
"description": "Vitest Test"
8282
},
8383
"Vitest Test - Concurrent": {
8484
"prefix": "vitest-concurrent",
8585
"body": [
86-
"test.concurrent('${1:name}'), () => {",
86+
"test.concurrent('${1:name}', () => {",
8787
"\t${0}",
88-
"}"
88+
"})"
8989
],
9090
"description": "Vitest Test Concurrent"
9191
},
9292
"Vitest Test - Async": {
9393
"prefix": "vitest-async",
9494
"body": [
95-
"test('${1:name}'), async () => {",
95+
"test('${1:name}', async () => {",
9696
"\t${0}",
97-
"}"
97+
"})"
9898
],
9999
"description": "Vitest Test Async"
100100
},
101101
"Vitest Test - Async Concurrent": {
102102
"prefix": "vitest-async-concurrent",
103103
"body": [
104-
"test.concurrent('${1:name}'), async () => {",
104+
"test.concurrent('${1:name}', async () => {",
105105
"\t${0}",
106-
"}"
106+
"})"
107107
],
108108
"description": "Vitest Test Async Concurrent"
109109
},

0 commit comments

Comments
 (0)