From b12dee119213c9517c66350b958018beff99fd42 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Fri, 28 Jun 2019 19:42:21 -0400 Subject: [PATCH] fix: return the `_super` call --- lib/assertions/content_match.js | 2 +- lib/assertions/directory_content.js | 4 ++-- lib/assertions/directory_equal.js | 2 +- lib/assertions/file_equal.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/assertions/content_match.js b/lib/assertions/content_match.js index 4a71306..b984178 100644 --- a/lib/assertions/content_match.js +++ b/lib/assertions/content_match.js @@ -44,7 +44,7 @@ module.exports = function (chai, utils) { , content ); } else { - _super.apply(this, arguments); + return _super.apply(this, arguments); } }; }); diff --git a/lib/assertions/directory_content.js b/lib/assertions/directory_content.js index b000bd9..aef7e56 100644 --- a/lib/assertions/directory_content.js +++ b/lib/assertions/directory_content.js @@ -90,7 +90,7 @@ module.exports = function (chai, utils) { if (flag(this, 'fs.directoryContent')) { directoryContentAssertion.call(this, 'contents', expectedContents, msg); } else { - _super.apply(this, arguments); + return _super.apply(this, arguments); } }; } @@ -101,7 +101,7 @@ module.exports = function (chai, utils) { directoryContentChainingBehavior.call(this, null); } else { - _super.apply(this, arguments); + return _super.apply(this, arguments); } }; } diff --git a/lib/assertions/directory_equal.js b/lib/assertions/directory_equal.js index 05d9e83..d4ffe22 100644 --- a/lib/assertions/directory_equal.js +++ b/lib/assertions/directory_equal.js @@ -52,7 +52,7 @@ module.exports = function (chai, utils) { , true // show diff ); } else { - _super.apply(this, arguments); + return _super.apply(this, arguments); } }; }); diff --git a/lib/assertions/file_equal.js b/lib/assertions/file_equal.js index efd53df..bd16704 100644 --- a/lib/assertions/file_equal.js +++ b/lib/assertions/file_equal.js @@ -79,7 +79,7 @@ module.exports = function (chai, utils) { , true // show diff ); } else { - _super.apply(this, arguments); + return _super.apply(this, arguments); } }; });