mirror of https://github.com/sveltejs/svelte
parent
ab3290fa87
commit
36ef59df1f
@ -1,10 +1,13 @@
|
||||
import { flushSync } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: '0',
|
||||
|
||||
async test({ assert, component, target }) {
|
||||
await component.increment();
|
||||
test({ assert, component, target }) {
|
||||
component.increment();
|
||||
flushSync();
|
||||
|
||||
assert.htmlEqual(target.innerHTML, '1');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in new issue