diff options
Diffstat (limited to 'test/mocha/directives.js')
-rw-r--r-- | test/mocha/directives.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/directives.js b/test/mocha/directives.js index 65da6da5..74660dc6 100644 --- a/test/mocha/directives.js +++ b/test/mocha/directives.js @@ -146,7 +146,7 @@ describe("Directives", function() { UglifyJS.parse(tokenizer); }, function(e) { return e instanceof UglifyJS.JS_Parse_Error - && e.message === "Unexpected token: punc (])" + && /^Unexpected token: punc «]»/.test(e.message) }, test[0]); test[1].forEach(function(directive) { assert.strictEqual(tokenizer.has_directive(directive), true, directive + " in " + test[0]); |