Skip to content

Commit

Permalink
fix: MockDom's ClassList toggle and contains methods return `…
Browse files Browse the repository at this point in the history
…boolean` instead of `void`
  • Loading branch information
mkslanc committed Oct 10, 2022
1 parent 978d9ed commit e8c0a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/edit_session/bracket_match.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,6 @@ function BracketMatch() {
closeTagName: closeTagName
};
}
}
};
}
exports.BracketMatch = BracketMatch;
4 changes: 2 additions & 2 deletions src/test/mockdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e8c0a1f

Please sign in to comment.