add errors test
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
suite("errors", function () {
|
||||
var transform = require("../lib/6to5/transform");
|
||||
var assert = require("assert");
|
||||
|
||||
suite("errors", function () {
|
||||
test("syntax", function () {
|
||||
assert.throws(function () {
|
||||
transform.test([
|
||||
"arr.map(function () {",
|
||||
" return $@!@#;",
|
||||
"});"
|
||||
]);
|
||||
}, /Error: test: Line 2: Unexpected token ILLEGAL/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user