()
| 5 | Deno.test({ |
| 6 | name: "parse() handles error message", |
| 7 | fn() { |
| 8 | assertThrows( |
| 9 | () => parse("foo = 1\nbar ="), |
| 10 | SyntaxError, |
| 11 | "line 2, column 5", |
| 12 | ); |
| 13 | assertThrows( |
| 14 | () => parse("foo = 1\nbar = 'foo\nbaz=1"), |
| 15 | SyntaxError, |
| 16 | "line 2, column 10", |
| 17 | ); |
| 18 | }, |
| 19 | }); |
| 20 | |
| 21 | Deno.test({ |
nothing calls this directly
no test coverage detected