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-runes/samples/derived-unowned-6/_config.js

15 lines
312 B

import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
async test({ assert, target, logs }) {
let [btn1] = target.querySelectorAll('button');
flushSync(() => {
btn1.click();
});
assert.deepEqual(logs, ['computing', 'a', 'a', 'computing', 'bb', 'bb']);
}
});