diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-03-15 00:20:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 00:20:20 +0800 |
commit | d90777b724689af625c36ed6d557b024775ee95a (patch) | |
tree | 5fe1aad5f5aeaad383b0cef847b445e862af07fd /test/mocha/minify.js | |
parent | e49297e5eb7039246cc3a78019234826631eb623 (diff) | |
download | tracifyjs-d90777b724689af625c36ed6d557b024775ee95a.tar.gz tracifyjs-d90777b724689af625c36ed6d557b024775ee95a.zip |
parse `mangle.properties.regex` in `--config-file` properly (#3337)
fixes #3315
Diffstat (limited to 'test/mocha/minify.js')
-rw-r--r-- | test/mocha/minify.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mocha/minify.js b/test/mocha/minify.js index c580e59c..6e6c7a78 100644 --- a/test/mocha/minify.js +++ b/test/mocha/minify.js @@ -119,7 +119,7 @@ describe("minify", function() { it("Should not parse invalid use of reserved words", function() { assert.strictEqual(UglifyJS.minify("function enum(){}").error, undefined); assert.strictEqual(UglifyJS.minify("function static(){}").error, undefined); - assert.strictEqual(UglifyJS.minify("function this(){}").error.message, "Unexpected token: name (this)"); + assert.strictEqual(UglifyJS.minify("function this(){}").error.message, "Unexpected token: name «this»"); }); describe("keep_quoted_props", function() { @@ -214,7 +214,7 @@ describe("minify", function() { var result = UglifyJS.minify("function f(a{}"); var err = result.error; assert.ok(err instanceof Error); - assert.strictEqual(err.stack.split(/\n/)[0], "SyntaxError: Unexpected token punc «{», expected punc «,»"); + assert.strictEqual(err.stack.split(/\n/)[0], "SyntaxError: Unexpected token: punc «{», expected: punc «,»"); assert.strictEqual(err.filename, "0"); assert.strictEqual(err.line, 1); assert.strictEqual(err.col, 12); @@ -241,7 +241,7 @@ describe("minify", function() { }); var err = result.error; assert.ok(err instanceof Error); - assert.strictEqual(err.stack.split(/\n/)[0], "SyntaxError: Unexpected token: keyword (debugger)"); + assert.strictEqual(err.stack.split(/\n/)[0], "SyntaxError: Unexpected token: keyword «debugger»"); }); it("Should skip inherited properties", function() { var foo = Object.create({ skip: this }); |