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:
Angelos Chalaris
2018-06-19 20:57:58 +03:00
parent 73a05894e9
commit 1c8e535a41
14 changed files with 1514 additions and 1406 deletions

View File

@ -0,0 +1,6 @@
const expect = require('expect');
const triggerEvent = require('./triggerEvent.js');
test('triggerEvent is a Function', () => {
expect(triggerEvent).toBeInstanceOf(Function);
});