Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit c657c92

Browse files
committed
caps
1 parent 09aa82a commit c657c92

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/body-parser-spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("Snippet Body Parser", () => {
88
expect(SnippetParser.parse(input)).toEqual(tree);
99
}
1010

11-
describe("When parsing tab stops", () => {
11+
describe("when parsing tab stops", () => {
1212
it("parses simple tab stops", () => {
1313
expectMatch("hello$1world${2}", [
1414
"hello", { index: 1, content: [] }, "world", { index: 2, content: [] },
@@ -115,7 +115,7 @@ describe("Snippet Body Parser", () => {
115115
});
116116
});
117117

118-
describe("When parsing variables", () => {
118+
describe("when parsing variables", () => {
119119
it("parses simple variables", () => {
120120
expectMatch("hello$foo2__bar&baz${abc}d", [
121121
"hello",
@@ -187,7 +187,7 @@ describe("Snippet Body Parser", () => {
187187
});
188188
});
189189

190-
describe("When parsing choices", () => {
190+
describe("when parsing choices", () => {
191191
it("parses simple choices", () => {
192192
expectMatch("${1|a,b,c|}", [{ index: 1, choices: ["a", "b", "c"] }]);
193193
});
@@ -219,7 +219,7 @@ describe("Snippet Body Parser", () => {
219219
});
220220
});
221221

222-
describe("When parsing transformations", () => {
222+
describe("when parsing transformations", () => {
223223
it("allows an empty transformation", () => {
224224
expectMatch("${1///}", [{ index: 1, transformation: { find: new RegExp(""), replace: [] } }]);
225225
});
@@ -263,7 +263,7 @@ describe("Snippet Body Parser", () => {
263263
]);
264264
});
265265

266-
describe("When parsing the replace section", () => {
266+
describe("when parsing the replace section", () => {
267267
// Helper for testing the relacement part of
268268
// transformations, which are relatively deep in
269269
// the tree and have a lot of behaviour to cover
@@ -304,7 +304,7 @@ describe("Snippet Body Parser", () => {
304304
]);
305305
});
306306

307-
describe("When parsing formats", () => {
307+
describe("when parsing formats", () => {
308308
it("parses simple formats", () => {
309309
expectReplaceMatch("$1${2}", [
310310
{ backreference: 1 },
@@ -397,7 +397,7 @@ describe("Snippet Body Parser", () => {
397397
});
398398
});
399399

400-
describe("When parsing escaped characters", () => {
400+
describe("when parsing escaped characters", () => {
401401
const escapeTest = "\\$ \\\\ \\} \\% \\* \\, \\| \\{ \\n \\r \\:";
402402

403403
const escapeResolveTop = "$ \\ } \\% \\* \\, \\| \\{ \\n \\r \\:";
@@ -429,7 +429,7 @@ describe("Snippet Body Parser", () => {
429429
});
430430
});
431431

432-
describe("When a potential non-text parse fails", () => {
432+
describe("when a potential non-text parse fails", () => {
433433
it("accepts the first character as text and resumes", () => {
434434
expectMatch("${1:${2}${3}", [
435435
"${1:",

0 commit comments

Comments
 (0)