From 58fae7dc070449e650d1a48ad7144cb5571a510f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 20 May 2017 15:58:46 +0800 Subject: enhance `if_return` to handle `return void...` (#1977) fixes #512 --- test/mocha/spidermonkey.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/mocha/spidermonkey.js') diff --git a/test/mocha/spidermonkey.js b/test/mocha/spidermonkey.js index a8a112d0..9bddb537 100644 --- a/test/mocha/spidermonkey.js +++ b/test/mocha/spidermonkey.js @@ -15,7 +15,9 @@ describe("spidermonkey export/import sanity test", function() { eval(stdout); assert.strictEqual(typeof SpiderUglify, "object"); - assert.strictEqual(SpiderUglify.minify("foo([true,,2+3]);").code, "foo([!0,,5]);"); + var result = SpiderUglify.minify("foo([true,,2+3]);"); + assert.strictEqual(result.error, undefined); + assert.strictEqual(result.code, "foo([!0,,5]);"); done(); }); -- cgit v1.2.3