|
3 | 3 | "cases": [ |
4 | 4 | { |
5 | 5 | "description": "should instantiate directives", |
6 | | - "inputFiles": [ |
7 | | - "directives.ts" |
8 | | - ], |
| 6 | + "inputFiles": ["directives.ts"], |
9 | 7 | "expectations": [ |
10 | 8 | { |
11 | 9 | "failureMessage": "Incorrect ChildComponent.ɵcmp", |
|
62 | 60 | ] |
63 | 61 | } |
64 | 62 | ], |
65 | | - "compilationModeFilter": [ |
66 | | - "full compile", |
67 | | - "local compile" |
68 | | - ] |
| 63 | + "compilationModeFilter": ["full compile", "local compile"] |
69 | 64 | }, |
70 | 65 | { |
71 | 66 | "description": "should support complex selectors", |
72 | | - "inputFiles": [ |
73 | | - "complex_selectors.ts" |
74 | | - ], |
| 67 | + "inputFiles": ["complex_selectors.ts"], |
75 | 68 | "expectations": [ |
76 | 69 | { |
77 | 70 | "failureMessage": "Incorrect SomeDirective.ɵdir", |
|
113 | 106 | }, |
114 | 107 | { |
115 | 108 | "description": "should convert #my-app selector to [\"\", \"id\", \"my-app\"]", |
116 | | - "inputFiles": [ |
117 | | - "id_selector.ts" |
118 | | - ], |
| 109 | + "inputFiles": ["id_selector.ts"], |
119 | 110 | "expectations": [ |
120 | 111 | { |
121 | 112 | "failureMessage": "Incorrect SomeComponent.ɵcomp", |
122 | | - "files": [ |
123 | | - "id_selector.js" |
124 | | - ] |
| 113 | + "files": ["id_selector.js"] |
125 | 114 | } |
126 | 115 | ] |
127 | 116 | }, |
128 | 117 | { |
129 | 118 | "description": "should support components without selector", |
130 | | - "inputFiles": [ |
131 | | - "no_selector.ts" |
132 | | - ], |
| 119 | + "inputFiles": ["no_selector.ts"], |
133 | 120 | "expectations": [ |
134 | 121 | { |
135 | 122 | "failureMessage": "Incorrect EmptyOutletComponent.ɵcmp", |
|
153 | 140 | }, |
154 | 141 | { |
155 | 142 | "description": "should not treat ElementRef, ViewContainerRef, or ChangeDetectorRef specially when injecting", |
156 | | - "inputFiles": [ |
157 | | - "view_tokens_di.ts" |
158 | | - ], |
| 143 | + "inputFiles": ["view_tokens_di.ts"], |
159 | 144 | "expectations": [ |
160 | 145 | { |
161 | 146 | "failureMessage": "Incorrect MyComponent.ɵcmp", |
|
179 | 164 | }, |
180 | 165 | { |
181 | 166 | "description": "should support structural directives", |
182 | | - "inputFiles": [ |
183 | | - "structural_directives.ts" |
184 | | - ], |
| 167 | + "inputFiles": ["structural_directives.ts"], |
185 | 168 | "expectations": [ |
186 | 169 | { |
187 | 170 | "failureMessage": "Incorrect IfDirective.ɵdir", |
|
223 | 206 | }, |
224 | 207 | { |
225 | 208 | "description": "should support array literals", |
226 | | - "inputFiles": [ |
227 | | - "array_literals.ts" |
228 | | - ], |
| 209 | + "inputFiles": ["array_literals.ts"], |
229 | 210 | "expectations": [ |
230 | 211 | { |
231 | 212 | "failureMessage": "Invalid array emit", |
232 | | - "files": [ |
233 | | - "array_literals.js" |
234 | | - ] |
| 213 | + "files": ["array_literals.js"] |
235 | 214 | } |
236 | 215 | ] |
237 | 216 | }, |
238 | 217 | { |
239 | 218 | "description": "should support 9+ bindings in array literals", |
240 | | - "inputFiles": [ |
241 | | - "array_literals_many.ts" |
242 | | - ], |
| 219 | + "inputFiles": ["array_literals_many.ts"], |
243 | 220 | "expectations": [ |
244 | 221 | { |
245 | 222 | "failureMessage": "Invalid array binding", |
246 | | - "files": [ |
247 | | - "array_literals_many.js" |
248 | | - ] |
| 223 | + "files": ["array_literals_many.js"] |
249 | 224 | } |
250 | 225 | ] |
251 | 226 | }, |
252 | 227 | { |
253 | 228 | "description": "should support object literals", |
254 | | - "inputFiles": [ |
255 | | - "object_literals.ts" |
256 | | - ], |
| 229 | + "inputFiles": ["object_literals.ts"], |
257 | 230 | "expectations": [ |
258 | 231 | { |
259 | 232 | "failureMessage": "Invalid object literal binding", |
260 | | - "files": [ |
261 | | - "object_literals.js" |
262 | | - ] |
| 233 | + "files": ["object_literals.js"] |
263 | 234 | } |
264 | 235 | ] |
265 | 236 | }, |
266 | 237 | { |
267 | 238 | "description": "should support expressions nested deeply in object/array literals", |
268 | | - "inputFiles": [ |
269 | | - "literal_nested_expression.ts" |
270 | | - ], |
| 239 | + "inputFiles": ["literal_nested_expression.ts"], |
271 | 240 | "expectations": [ |
272 | 241 | { |
273 | 242 | "failureMessage": "Invalid array/object literal binding", |
274 | | - "files": [ |
275 | | - "literal_nested_expression.js" |
276 | | - ] |
| 243 | + "files": ["literal_nested_expression.js"] |
277 | 244 | } |
278 | 245 | ] |
279 | 246 | }, |
280 | 247 | { |
281 | 248 | "description": "should support number literals with separators", |
282 | | - "inputFiles": [ |
283 | | - "number_separator.ts" |
284 | | - ], |
| 249 | + "inputFiles": ["number_separator.ts"], |
285 | 250 | "expectations": [ |
286 | 251 | { |
287 | 252 | "failureMessage": "Invalid number literal", |
288 | | - "files": [ |
289 | | - "number_separator.js" |
290 | | - ] |
| 253 | + "files": ["number_separator.js"] |
291 | 254 | } |
292 | 255 | ] |
293 | 256 | }, |
294 | 257 | { |
295 | 258 | "description": "should support template literals", |
296 | | - "inputFiles": [ |
297 | | - "template_literals.ts" |
298 | | - ], |
| 259 | + "inputFiles": ["template_literals.ts"], |
299 | 260 | "expectations": [ |
300 | 261 | { |
301 | 262 | "failureMessage": "Invalid template literal binding", |
302 | | - "files": [ |
303 | | - "template_literals.js" |
304 | | - ] |
| 263 | + "files": ["template_literals.js"] |
| 264 | + } |
| 265 | + ] |
| 266 | + }, |
| 267 | + { |
| 268 | + "description": "should support tagged template literals", |
| 269 | + "inputFiles": ["tagged_template_literals.ts"], |
| 270 | + "expectations": [ |
| 271 | + { |
| 272 | + "failureMessage": "Invalid tagged template literal binding", |
| 273 | + "files": ["tagged_template_literals.js"] |
305 | 274 | } |
306 | 275 | ] |
307 | 276 | } |
|
0 commit comments