UNPKG

vanillajs-browser-helpers

Version:

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser

14 lines (9 loc) 335 B
import ensureHTML from '../ensureHTML'; describe('"findUniqueNodeCollection"', () => { it('Returns string containing "<" directly', () => { expect(ensureHTML('<')).toBe('<'); }); it('Returns generated HTML from a selector', () => { expect(ensureHTML('#id.class')).toBe('<div id="id" class="class"></div>'); }); });