From 28330913d871dd4bdb4e59464c7230f9ae4174fa Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 22 Jun 2018 01:04:15 +0800 Subject: improve `mocha` tests (#3195) --- test/mocha/string-literal.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/mocha/string-literal.js') 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) { -- cgit v1.2.3