aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocha/cli.js')
-rw-r--r--test/mocha/cli.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 335b224d..db4a2c33 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -19,7 +19,9 @@ describe("bin/uglifyjs", function () {
eval(stdout);
assert.strictEqual(typeof WrappedUglifyJS, 'object');
- assert.strictEqual(WrappedUglifyJS.minify("foo([true,,2+3]);").code, "foo([!0,,5]);");
+ var result = WrappedUglifyJS.minify("foo([true,,2+3]);");
+ assert.strictEqual(result.error, undefined);
+ assert.strictEqual(result.code, "foo([!0,,5]);");
done();
});