You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/head-detached-in-dynamic-co.../_config.js

16 lines
277 B

export default {
html: `
A
`,
test({ assert, component, window }) {
component.x = false;
const meta = window.document.querySelectorAll('meta');
assert.equal(meta.length, 1);
assert.equal(meta[0].name, 'description');
assert.equal(meta[0].content, 'B');
}
};