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/packages/svelte/tests/runtime-legacy/samples/target-dom-detached/_config.js

18 lines
394 B

import { test } from '../../test';
export default test({
skip_mode: ['server'],
compileOptions: {
cssHash: () => 'svelte-xyz'
},
async test({ assert, component, window }) {
assert.htmlEqual(
window.document.head.innerHTML,
'<style>div.svelte-xyz\n{\ncolor:\nred;\n}</style>'
);
assert.htmlEqual(component.div.innerHTML, '<div class="svelte-xyz">Hello World</div>');
}
});