diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-06-22 01:04:15 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl@gmail.com> | 2018-06-24 04:00:36 +0800 |
commit | 28330913d871dd4bdb4e59464c7230f9ae4174fa (patch) | |
tree | 32fba882ce0d546d14f461677c56e771e10f02e1 /test/mocha/string-literal.js | |
parent | 766a4147d4891a093b550e958268c48104330b52 (diff) | |
download | tracifyjs-28330913d871dd4bdb4e59464c7230f9ae4174fa.tar.gz tracifyjs-28330913d871dd4bdb4e59464c7230f9ae4174fa.zip |
improve `mocha` tests (#3195)
Diffstat (limited to 'test/mocha/string-literal.js')
-rw-r--r-- | test/mocha/string-literal.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mocha/string-literal.js b/test/mocha/string-literal.js index f595f29a..aca915b7 100644 --- a/test/mocha/string-literal.js +++ b/test/mocha/string-literal.js @@ -1,5 +1,5 @@ -var UglifyJS = require("../node"); var assert = require("assert"); +var UglifyJS = require("../node"); describe("String literals", function() { it("Should throw syntax error if a string literal contains a newline", function() { @@ -18,8 +18,8 @@ describe("String literals", function() { }; var error = function(e) { - return e instanceof UglifyJS.JS_Parse_Error && - e.message === "Unterminated string constant"; + return e instanceof UglifyJS.JS_Parse_Error + && e.message === "Unterminated string constant"; }; for (var input in inputs) { @@ -48,8 +48,8 @@ describe("String literals", function() { }; var error = function(e) { - return e instanceof UglifyJS.JS_Parse_Error && - e.message === "Legacy octal escape sequences are not allowed in strict mode"; + return e instanceof UglifyJS.JS_Parse_Error + && e.message === "Legacy octal escape sequences are not allowed in strict mode"; } for (var input in inputs) { |