summaryrefslogtreecommitdiffstats
path: root/web_src/js/utils/dom.test.js
blob: fd7d97cad5e3217d4070d8c5ebaac162b63aa6e5 (plain)
1
2
3
4
5
import {createElementFromHTML} from './dom.js';

test('createElementFromHTML', () => {
  expect(createElementFromHTML('<a>foo<span>bar</span></a>').outerHTML).toEqual('<a>foo<span>bar</span></a>');
});