diff --git a/test/programs/string-template-literal/main.ts b/test/programs/string-template-literal/main.ts index 4b0745b0..adfb457b 100644 --- a/test/programs/string-template-literal/main.ts +++ b/test/programs/string-template-literal/main.ts @@ -8,4 +8,7 @@ interface MyObject { g: `${string}@`, h: `${number}@`, i: `${string}@${number}`, + j: `{{${string}}}` + k: `${string}\n` + l: `${string}-${string}` } \ No newline at end of file diff --git a/test/programs/string-template-literal/schema.json b/test/programs/string-template-literal/schema.json index cc39dd2c..bb0149f8 100644 --- a/test/programs/string-template-literal/schema.json +++ b/test/programs/string-template-literal/schema.json @@ -39,6 +39,18 @@ "i": { "type": "string", "pattern": "^.*@[0-9]*$" + }, + "j": { + "pattern": "^\\{\\{.*\\}\\}$", + "type": "string" + }, + "k": { + "pattern": "^.*\\n$", + "type": "string" + }, + "l": { + "pattern": "^.*-.*$", + "type": "string" } }, "additionalProperties": false, @@ -51,7 +63,10 @@ "f", "g", "h", - "i" + "i", + "j", + "k", + "l" ], "$schema": "http://json-schema.org/draft-07/schema#" } \ No newline at end of file