import * as jsdom from 'jsdom'
import * as xjs from '../../index'
import test from './test'
let x: xjs.Document = new xjs.Document(new jsdom.JSDOM(`
test
`).window.document)
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()),
''
))(), ''),
])