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/keyed-each-dev-unique-prod/_config.js

13 lines
247 B

import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
test({ assert, target }) {
let button = target.querySelector('button');
button?.click();
assert.throws(flushSync, /each_key_duplicate/);
}
});