Skip to content

Commit ffedba3

Browse files
authored
fix: Added mockdom.before method (#4724)
1 parent f8ea48f commit ffedba3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ace/test/mockdom.js

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ function Node(name) {
165165

166166
return node;
167167
};
168+
this.before = function(node) {
169+
if (this.parentNode) this.parentNode.insertBefore(node, this);
170+
};
168171
this.hasChildNodes = function() {
169172
return this.childNodes.length > 0;
170173
};

0 commit comments

Comments
 (0)