refactor brackets to braces (#3005)

This commit is contained in:
Alex Lam S.L
2018-03-15 15:46:45 +08:00
committed by GitHub
parent 90585e29c2
commit b29d435bb5
11 changed files with 32 additions and 32 deletions

View File

@@ -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();
});
});

View File

@@ -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 */});",

View File

@@ -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",