[FIX] better control on value mutation

This commit is contained in:
Joffrey JAFFEUX
2017-10-20 13:40:56 -07:00
committed by GitHub
parent 383191cafc
commit ae1e4de286
4 changed files with 48 additions and 12 deletions
@@ -275,3 +275,19 @@ componentTest('supports keyboard events', {
});
}
});
componentTest('supports mutating value when no value given', {
template: '{{select-box-kit value=value content=content}}',
beforeEach() {
this.set("value", "");
this.set("content", [{ id: "1", name: "robin"}, {id: "2", name: "régis" }]);
},
test(assert) {
andThen(() => {
assert.equal(this.get("value"), "1");
});
}
});