tidy up test

pull/709/head
Rich Harris 8 years ago
parent 2d2c68c26b
commit 05a27c5fb2

@ -6,7 +6,8 @@
const initialValues = {
'id-0': 'zero',
'id-1': 'one',
'id-2': 'two'
'id-2': 'two',
'id-3': 'three'
};
export default {

@ -1,7 +1,10 @@
export default {
// solo: true,
'skip-ssr': true,
data: {
ids: ['id-0', 'id-1', 'id-2']
},
html: `
<ol>
<li>id-0: value is zero</li>
@ -10,7 +13,18 @@ export default {
</ol>
`,
// test ( assert, component, target, window ) {
// }
test (assert, component, target) {
component.set({
ids: ['id-0', 'id-1', 'id-2', 'id-3']
});
assert.htmlEqual(target.innerHTML, `
<ol>
<li>id-0: value is zero</li>
<li>id-1: value is one</li>
<li>id-2: value is two</li>
<li>id-3: value is three</li>
</ol>
`);
}
};

@ -12,7 +12,6 @@
export default {
data() {
return {
ids: ['id-0', 'id-1', 'id-2'],
idToValue: Object.create(null)
};
},

Loading…
Cancel
Save