Skip to content

Commit

Permalink
add test for #891
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Oct 24, 2017
1 parent 218dcac commit 1dad8f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/runtime/samples/set-mutated-data/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const data = { foo: 0 };

export default {
data,

html: '0',

test(assert, component, target) {
data.foo = 42;
component.set(data);

assert.htmlEqual(target.innerHTML, '42');
}
};
1 change: 1 addition & 0 deletions test/runtime/samples/set-mutated-data/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{foo}}

0 comments on commit 1dad8f1

Please sign in to comment.