Add 4 new browser snippets
triggerEvent - trigger an event on an element, insertAfter & insertBefore - parse and insert HTML after or before an element respectively, elementContains - checks if an element contains another element
This commit is contained in:
6
test/triggerEvent/triggerEvent.test.js
Normal file
6
test/triggerEvent/triggerEvent.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
const expect = require('expect');
|
||||
const triggerEvent = require('./triggerEvent.js');
|
||||
|
||||
test('triggerEvent is a Function', () => {
|
||||
expect(triggerEvent).toBeInstanceOf(Function);
|
||||
});
|
||||
Reference in New Issue
Block a user