forgejo/web_src/js/utils/dom.test.js

6 lines
202 B
JavaScript
Raw Permalink Normal View History

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