mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
const swc = require("../pkg");
|
|
|
|
it("properly reports error", function () {
|
|
expect(() => {
|
|
swc.transformSync("Foo {}", {});
|
|
}).toThrow("Syntax Error");
|
|
|
|
expect(() => {
|
|
swc.transformSync("Foo {}", {});
|
|
}).toThrow("Expected ';', '}' or <eof>");
|
|
});
|