From ec8ba54c54a91fb7140fd9a35b31012bb1abd0f8 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Wed, 8 Mar 2017 17:16:36 -0800 Subject: [PATCH] fix(tests): UglifyJS errors use "message" property --- test/err.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/err.js b/test/err.js index 4600a35..66ea8f1 100644 --- a/test/err.js +++ b/test/err.js @@ -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');