(code)
| 3 | import { tokenize, parse } from "../dist/index.js"; |
| 4 | |
| 5 | const parseFromCode = (code) => { |
| 6 | const [root] = parse(tokenize(code)); |
| 7 | return root; |
| 8 | }; |
| 9 | |
| 10 | test("rect accepts declared tuple attributes", () => { |
| 11 | const ast = parseFromCode( |
no test coverage detected