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/key-block-2/_config.js

15 lines
448 B

// with reactive content beside `key`
export default {
html: '<div>00</div>',
async test({ assert, component, target }) {
const div = target.querySelector('div');
component.reactive = 2;
assert.htmlEqual(target.innerHTML, '<div>02</div>');
assert.strictEqual(div, target.querySelector('div'));
component.value = 5;
assert.htmlEqual(target.innerHTML, '<div>52</div>');
assert.notStrictEqual(div, target.querySelector('div'));
}
};