From e8c0a1f35d302966626896aaf84b056e76a8e66e Mon Sep 17 00:00:00 2001 From: mkslanc Date: Mon, 10 Oct 2022 19:45:47 +0400 Subject: [PATCH] fix: `MockDom's` `ClassList` `toggle` and `contains` methods return `boolean` instead of `void` --- src/edit_session/bracket_match.js | 2 +- src/test/mockdom.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/edit_session/bracket_match.js b/src/edit_session/bracket_match.js index 7e6d4899c44..2e88214f626 100644 --- a/src/edit_session/bracket_match.js +++ b/src/edit_session/bracket_match.js @@ -403,6 +403,6 @@ function BracketMatch() { closeTagName: closeTagName }; } - } + }; } exports.BracketMatch = BracketMatch; diff --git a/src/test/mockdom.js b/src/test/mockdom.js index b64b79c405b..e0c65ddddae 100644 --- a/src/test/mockdom.js +++ b/src/test/mockdom.js @@ -41,10 +41,10 @@ function ClassList(node) { dom.removeCssClass(this.el, str); }; this.toggle = function(str) { - dom.toggleCssClass(this.el, str); + return dom.toggleCssClass(this.el, str); }; this.contains = function(str) { - dom.hasCssClass(this.el, str); + return dom.hasCssClass(this.el, str); }; }).call(ClassList.prototype);