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-function/_config.js

15 lines
318 B

export default {
html: '<p>50</p>',
test({ assert, component, target }) {
component.range = [50, 100];
assert.htmlEqual(target.innerHTML, '<p>75</p>');
component.range = [50, 60];
assert.htmlEqual(target.innerHTML, '<p>55</p>');
component.x = 8;
assert.htmlEqual(target.innerHTML, '<p>58</p>');
}
};