import * as jsdom from 'jsdom' import * as xjs from '../../index' import test from './test' let x: xjs.DocumentFragment = new xjs.DocumentFragment(jsdom.JSDOM.fragment(` `).querySelector('template') !.content.querySelector('template') !.content) export default Promise.all([ test((() => ( console.log(`Expected possible warning: "\`HTMLLinkElement#import\` is not yet supported. Replacing \`\`s with their imported contents…"`), console.log(x.importLinks(__dirname).innerHTML()), '' ))(), ''), test((async () => ( console.log(`Expected possible warning: "\`HTMLLinkElement#import\` is not yet supported. Replacing \`\`s with their imported contents…"`), await x.importLinksAsync(__dirname), console.log(x.innerHTML()), '' ))(), ''), ])