( text: string, // deno-lint-ignore no-explicit-any ErrorClass: new (...args: any[]) => Error, msgIncludes?: string, )
| 18 | } |
| 19 | |
| 20 | function assertInvalidParse( |
| 21 | text: string, |
| 22 | // deno-lint-ignore no-explicit-any |
| 23 | ErrorClass: new (...args: any[]) => Error, |
| 24 | msgIncludes?: string, |
| 25 | ) { |
| 26 | assertThrows( |
| 27 | () => parse(text), |
| 28 | ErrorClass, |
| 29 | msgIncludes, |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | Deno.test({ |
| 34 | name: "parse() handles single line comment", |
no test coverage detected