add errors test

This commit is contained in:
Sebastian McKenzie
2014-09-29 01:02:55 +10:00
parent 26416784a8
commit b3657b3c2e

View File

@@ -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/);
});
});