aboutsummaryrefslogtreecommitdiff
path: root/test/mocha
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-03-15 15:46:45 +0800
committerGitHub <noreply@github.com>2018-03-15 15:46:45 +0800
commitb29d435bb5bc4d883a23efaabd76e95092352b6c (patch)
tree66c07a30785785628af0356fa649b033643b5569 /test/mocha
parent90585e29c257e3417f8a22024d6701d1ddced2fe (diff)
downloadtracifyjs-b29d435bb5bc4d883a23efaabd76e95092352b6c.tar.gz
tracifyjs-b29d435bb5bc4d883a23efaabd76e95092352b6c.zip
refactor brackets to braces (#3005)
Diffstat (limited to 'test/mocha')
-rw-r--r--test/mocha/cli.js6
-rw-r--r--test/mocha/comment.js2
-rw-r--r--test/mocha/release.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 671d700e..10f0465a 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -164,13 +164,13 @@ describe("bin/uglifyjs", function () {
done();
});
});
- it("Should work with `--beautify bracketize`", function (done) {
- var command = uglifyjscmd + ' test/input/issue-1482/input.js -b bracketize';
+ it("Should work with `--beautify braces`", function (done) {
+ var command = uglifyjscmd + ' test/input/issue-1482/input.js -b braces';
exec(command, function (err, stdout) {
if (err) throw err;
- assert.strictEqual(stdout, read("test/input/issue-1482/bracketize.js"));
+ assert.strictEqual(stdout, read("test/input/issue-1482/braces.js"));
done();
});
});
diff --git a/test/mocha/comment.js b/test/mocha/comment.js
index 74ae962c..9fc50470 100644
--- a/test/mocha/comment.js
+++ b/test/mocha/comment.js
@@ -139,7 +139,7 @@ describe("Comment", function() {
assert.strictEqual(result.code, code);
});
- it("Should retain comments within brackets", function() {
+ it("Should retain comments within braces", function() {
var code = [
"{/* foo */}",
"a({/* foo */});",
diff --git a/test/mocha/release.js b/test/mocha/release.js
index 063d0fc7..f911b009 100644
--- a/test/mocha/release.js
+++ b/test/mocha/release.js
@@ -17,7 +17,7 @@ describe("test/benchmark.js", function() {
this.timeout(10 * 60 * 1000);
[
"-b",
- "-b bracketize",
+ "-b braces",
"-m",
"-mc passes=3",
"-mc passes=3,toplevel",