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/test/runtime/samples/reactive-values-text-node/_config.js

26 lines
364 B

import { create_deferred } from '../../../helpers';
let deferred;
export default {
before_test() {
deferred = create_deferred();
},
get props() {
return { deferred };
},
html: '<div>same text</div>',
async test({ assert, target }) {
await deferred.promise;
assert.htmlEqual(
target.innerHTML,
`
<div>same text text</div>
`
);
}
};