( t: ExecutionContext, ...presets: string[] )
| 38 | ); |
| 39 | |
| 40 | const testSyntacticError = ( |
| 41 | t: ExecutionContext, |
| 42 | ...presets: string[] |
| 43 | ) => { |
| 44 | for (const preset of presets) { |
| 45 | t.is((new ResizePresetListParser(preset)).parse(), null); |
| 46 | } |
| 47 | }; |
| 48 | |
| 49 | test("handles invalid specs", |
| 50 | testSyntacticError, |