diff options
Diffstat (limited to 'web_src/js/utils/dom.test.js')
-rw-r--r-- | web_src/js/utils/dom.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/utils/dom.test.js b/web_src/js/utils/dom.test.js new file mode 100644 index 0000000..fd7d97c --- /dev/null +++ b/web_src/js/utils/dom.test.js @@ -0,0 +1,5 @@ +import {createElementFromHTML} from './dom.js'; + +test('createElementFromHTML', () => { + expect(createElementFromHTML('<a>foo<span>bar</span></a>').outerHTML).toEqual('<a>foo<span>bar</span></a>'); +}); |