diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-09 16:36:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 16:36:44 +0800 |
commit | c14e2805859a3d85788af5d694fca73a6782530e (patch) | |
tree | bf783f0114c5c8b7908f5c3599b9f6fcba39f060 /test | |
parent | bc3fa78e8cedfda4cc0eb7aa7bc7b00c5e860650 (diff) | |
download | tracifyjs-c14e2805859a3d85788af5d694fca73a6782530e.tar.gz tracifyjs-c14e2805859a3d85788af5d694fca73a6782530e.zip |
print error stack in CLI (#1890)
Diffstat (limited to 'test')
-rw-r--r-- | test/mocha/cli.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js index 8c7964ac..8cf53ab4 100644 --- a/test/mocha/cli.js +++ b/test/mocha/cli.js @@ -185,7 +185,7 @@ describe("bin/uglifyjs", function () { exec(command, function (err, stdout, stderr) { assert.ok(err); - assert.strictEqual(stderr, "ERROR: inline source map only works with singular input\n"); + assert.strictEqual(stderr.split(/\n/)[0], "ERROR: inline source map only works with singular input"); done(); }); }); |