mirror of https://github.com/sveltejs/svelte
parent
1a5d4b159e
commit
32f5e85060
@ -1,19 +1,9 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
ssrHtml: `
|
||||
html: `
|
||||
<select>
|
||||
<option selected value="value" class="option">Label</option>
|
||||
<option value="value" class="option">Label</option>
|
||||
</select>
|
||||
`,
|
||||
test({ assert, target, variant }) {
|
||||
assert.htmlEqual(
|
||||
target.innerHTML,
|
||||
`
|
||||
<select>
|
||||
<option ${variant === 'hydrate' ? 'selected ' : ''}value="value" class="option">Label</option>
|
||||
</select>
|
||||
`
|
||||
);
|
||||
}
|
||||
`
|
||||
});
|
||||
|
Loading…
Reference in new issue