FIX: makes allowInitialValueMutation more restrictive

This commit is contained in:
Joffrey JAFFEUX
2017-11-24 13:15:02 +01:00
committed by GitHub
parent b3094e9954
commit 96cdc4e66e
3 changed files with 9 additions and 9 deletions

View File

@ -282,8 +282,8 @@ componentTest('supports keyboard events', {
});
componentTest('supports mutating value when no value given', {
template: '{{single-select value=value content=content}}',
componentTest('with allowInitialValueMutation', {
template: '{{single-select value=value content=content allowInitialValueMutation=true}}',
beforeEach() {
this.set("value", "");
@ -292,7 +292,7 @@ componentTest('supports mutating value when no value given', {
test(assert) {
andThen(() => {
assert.equal(this.get("value"), "1");
assert.equal(this.get("value"), "1", "it mutates the value on initial rendering");
});
}
});