Skip to content

Commit

Permalink
Fix lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
GCheung55 committed Feb 22, 2020
1 parent a3858d3 commit 9fe5a6b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/@ember/-internals/glimmer/tests/integration/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,30 @@ moduleFor(
}

['@test GH18211 input checked attribute, without a value, works with the action helper']() {
this.render(`<input type="checkbox" checked {{action "someAction"}}>`, { actions: { someAction() {} } });
this.render(`<input type="checkbox" checked {{action "someAction"}}>`, {
actions: { someAction() {} },
});
this.assertPropertyHasValue('checked', true);
}

['@test GH18211 input checked attribute, with a value, works with the action helper']() {
this.render(`<input type="checkbox" checked={{true}} {{action "someAction"}}>`, { actions: { someAction() {} } });
this.render(`<input type="checkbox" checked={{true}} {{action "someAction"}}>`, {
actions: { someAction() {} },
});
this.assertPropertyHasValue('checked', true);
}

['@test GH18211 input checked attribute, without a value, works with attributes with values']() {
this.render(`<input type="checkbox" checked click={{action "someAction"}}>`, { actions: { someAction() {} } });
this.render(`<input type="checkbox" checked click={{action "someAction"}}>`, {
actions: { someAction() {} },
});
this.assertPropertyHasValue('checked', true);
}

['@test GH18211 input checked attribute, without a value, works with event attributes']() {
this.render(`<input type="checkbox" checked onclick={{action "someAction"}}>`, { actions: { someAction() {} } });
this.render(`<input type="checkbox" checked onclick={{action "someAction"}}>`, {
actions: { someAction() {} },
});
this.assertPropertyHasValue('checked', true);
}

Expand Down

0 comments on commit 9fe5a6b

Please sign in to comment.