Skip to content

Commit

Permalink
fix(tests): UglifyJS errors use "message" property
Browse files Browse the repository at this point in the history
  • Loading branch information
terinjokes committed Mar 9, 2017
1 parent 6c336ec commit ec8ba54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/err.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('stream errors', function () {
], function (err) {
assert.ok(err instanceof Error, 'argument should be of type Error');
assert.ok(err instanceof GulpUglifyError, 'argument should be of type GulpUglifyError');
assert.equal(err.cause.msg, '`exportAll` is not a supported option');
assert.equal(err.cause.message, '`exportAll` is not a supported option');
assert.equal(err.plugin, 'gulp-uglify', 'error is from gulp-uglify');
assert.equal(err.fileName, testFile.path, 'error reports correct file name');
assert.ok(!err.showStack, 'error is configured to not print the stack');
Expand Down

0 comments on commit ec8ba54

Please sign in to comment.