Skip to content

Commit 98b0b77

Browse files
Added more stubbed methods for dummy event object.
1 parent 58bc568 commit 98b0b77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boilerplate.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ const dummyEvent = {
5050
key: 97, // "a"
5151

5252
stopPropagation: function() {},
53+
preventDefault: function() {},
54+
composedPath: function() {
55+
return {
56+
includes: function() { return false; },
57+
};
58+
},
5359
};
5460

5561
// Handle Blobs. All Blob methods in the real Blob class for dumping

0 commit comments

Comments
 (0)