Skip to content

Commit d19446e

Browse files
committed
fix: change single-quotes to backticks
backticks are easier to format with line breaks and other quote types
1 parent 115b5bf commit d19446e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

snippets/snippets-js.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
},
1919
"Then method": {
2020
"prefix": "then",
21-
"body": ["Then('$1', () => {", "\t$2", "});", ""]
21+
"body": ["Then(`$1`, () => {", "\t$2", "});", ""]
2222
},
2323
"Describe function": {
2424
"prefix": "desc",
2525
"description": "Describe function",
26-
"body": ["describe('$1', () => {", " $2", "});"]
26+
"body": ["describe(`$1`, () => {", " $2", "});"]
2727
},
2828
"Describe and When": {
2929
"prefix": "descwhen",
3030
"description": "Creates Describe function and When function",
3131
"body": [
32-
"describe('METHOD: $1', () => {",
32+
"describe(`METHOD: $1`, () => {",
3333
" When(() => {",
3434
" serviceUnderTest.$1()",
3535
" });",
@@ -40,7 +40,7 @@
4040
"prefix": "testcase",
4141
"description": "Creates a test case for a gwt test",
4242
"body": [
43-
"describe('GIVEN $1', () => {",
43+
"describe(`GIVEN $1`, () => {",
4444
"",
4545
" Given(() => {",
4646
" // $1",

snippets/snippets-ts.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"import { TestBed } from '@angular/core/testing';",
77
"import { Spy, provideAutoSpy } from '${1|jasmine,jest|}-auto-spies';",
88
"",
9-
"describe('$2', () => {",
9+
"describe(`$2`, () => {",
1010
" let componentUnderTest: $2;",
1111
"",
1212
" let actualResult: any;",
@@ -22,18 +22,18 @@
2222
"",
2323
" });",
2424
"",
25-
" describe('METHOD: $3', () => {",
25+
" describe(`METHOD: $3`, () => {",
2626
"",
2727
" When(() => {",
2828
" componentUnderTest.$3();",
2929
" });",
3030
"",
31-
" describe('GIVEN $4', () => {",
31+
" describe(`GIVEN $4`, () => {",
3232
" Given(() => {",
3333
" // $4",
3434
" $6",
3535
" });",
36-
" Then('$5', () => {",
36+
" Then(`$5`, () => {",
3737
" // $5",
3838
" });",
3939
" });",
@@ -50,7 +50,7 @@
5050
"import { TestBed } from '@angular/core/testing';",
5151
"import { Spy, provideAutoSpy } from '${1|jasmine,jest|}-auto-spies';",
5252
"",
53-
"describe('$2', () => {",
53+
"describe(`$2`, () => {",
5454
" let serviceUnderTest: $2;",
5555
"",
5656
" let actualResult: any;",
@@ -66,18 +66,18 @@
6666
"",
6767
" });",
6868
"",
69-
" describe('METHOD: $3', () => {",
69+
" describe(`METHOD: $3`, () => {",
7070
"",
7171
" When(() => {",
7272
" serviceUnderTest.$3();",
7373
" });",
7474
"",
75-
" describe('GIVEN $4', () => {",
75+
" describe(`GIVEN $4`, () => {",
7676
" Given(() => {",
7777
" // $4",
7878
" $6",
7979
" });",
80-
" Then('$5',() => {",
80+
" Then(`$5`,() => {",
8181
" // $5",
8282
" });",
8383
" });",
@@ -94,7 +94,7 @@
9494
"import { TestBed } from '@angular/core/testing';",
9595
"import { Spy, provideAutoSpy } from '${1|jasmine,jest|}-auto-spies';",
9696
"",
97-
"describe('$2', () => {",
97+
"describe(`$2`, () => {",
9898
" let ${3|component,service,directive,pipe|}UnderTest: $2;",
9999
"",
100100
" let actualResult: any;",
@@ -110,7 +110,7 @@
110110
"",
111111
" });",
112112
"",
113-
" describe('METHOD: $4', () => {",
113+
" describe(`METHOD: $4`, () => {",
114114
" $5",
115115
" });",
116116
"});",

0 commit comments

Comments
 (0)