Skip to content

Commit

Permalink
fix: update testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
hackape committed Jul 23, 2023
1 parent 841b641 commit 0e5e471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
value = { foo: 'kid' }
}
if (testcase === 'init_mutate') {
value.foo = 'kid'
}
$: if (testcase === 'reactive_update') {
value = { foo: 'kid' }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
{ testcase: 'child_default_populate_parent', value: undefined },
{ testcase: 'reactive_update', value: { foo: 'mon' } },
{ testcase: 'reactive_mutate', value: { foo: 'mon' } },
{ testcase: 'init_update', value: { foo: 'mon' } }
{ testcase: 'init_update', value: { foo: 'mon' } },
{ testcase: 'init_mutate', value: { foo: 'mon' } }
]
};
},
Expand Down Expand Up @@ -36,5 +37,9 @@ export default {
p = parents['init_update'];
assert.deepEqual(p.value, { foo: 'kid' });
assert.equal(p.updates.length, 2);

p = parents['init_mutate'];
assert.deepEqual(p.value, { foo: 'kid' });
assert.equal(p.updates.length, 2);
}
};

0 comments on commit 0e5e471

Please sign in to comment.