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/compiler/computed-values/_config.js

12 lines
325 B

import * as assert from 'assert';
export default {
html: '<p>1 + 2 = 3</p><p>3 * 3 = 9</p>',
test ( component, target ) {
component.set({ a: 3 });
assert.equal( component.get( 'c' ), 5 );
assert.equal( component.get( 'cSquared' ), 25 );
assert.equal( target.innerHTML, '<p>3 + 2 = 5</p><p>5 * 5 = 25</p>' );
}
};