Skip to content

Commit

Permalink
Fix tests after removed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed May 27, 2021
1 parent e41c963 commit 6753f42
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `<Input @enter="foo" />` when <enter> is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`<Input @enter="foo" />`, {
Expand All @@ -578,7 +578,7 @@ moduleFor(
['@test sends an action with `<Input @enter={{action "foo"}} />` when <enter> is pressed'](
assert
) {
assert.expect(2);
assert.expect(1);

this.render(`<Input @enter={{action 'foo'}} />`, {
actions: {
Expand All @@ -594,7 +594,7 @@ moduleFor(
}

['@test [DEPRECATED] sends an action with `<Input @key-press="foo" />` is pressed'](assert) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`<Input @value={{this.value}} @key-press='foo' />`, {
Expand Down Expand Up @@ -688,7 +688,7 @@ moduleFor(
}

['@test sends `insert-newline` when <enter> is pressed'](assert) {
assert.expect(2);
assert.expect(1);

this.render(`<Input @insert-newline={{action 'foo'}} />`, {
actions: {
Expand All @@ -706,7 +706,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `<Input @escape-press="foo" />` when <escape> is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`<Input @escape-press='foo' />`, {
Expand All @@ -726,7 +726,7 @@ moduleFor(
['@test sends an action with `<Input @escape-press={{action "foo"}} />` when <escape> is pressed'](
assert
) {
assert.expect(2);
assert.expect(1);

this.render(`<Input @escape-press={{action 'foo'}} />`, {
actions: {
Expand All @@ -742,7 +742,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `<Input @key-down="foo" />` when a key is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`<Input @key-down='foo' />`, {
Expand Down Expand Up @@ -787,7 +787,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `<Input @key-up="foo" />` when a key is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`<Input @key-up='foo' />`, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `{{input enter="foo"}}` when <enter> is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`{{input enter='foo'}}`, {
Expand All @@ -408,7 +408,7 @@ moduleFor(
['@test sends an action with `{{input enter=(action "foo")}}` when <enter> is pressed'](
assert
) {
assert.expect(2);
assert.expect(1);

this.render(`{{input enter=(action 'foo')}}`, {
actions: {
Expand All @@ -424,7 +424,7 @@ moduleFor(
}

['@test [DEPRECATED] sends an action with `{{input key-press="foo"}}` is pressed'](assert) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`{{input value=this.value key-press='foo'}}`, {
Expand Down Expand Up @@ -518,7 +518,7 @@ moduleFor(
}

['@test sends `insert-newline` when <enter> is pressed'](assert) {
assert.expect(2);
assert.expect(1);

this.render(`{{input insert-newline=(action 'foo')}}`, {
actions: {
Expand All @@ -536,7 +536,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `{{input escape-press="foo"}}` when <escape> is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`{{input escape-press='foo'}}`, {
Expand All @@ -556,7 +556,7 @@ moduleFor(
['@test sends an action with `{{input escape-press=(action "foo")}}` when <escape> is pressed'](
assert
) {
assert.expect(2);
assert.expect(1);

this.render(`{{input escape-press=(action 'foo')}}`, {
actions: {
Expand All @@ -572,7 +572,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `{{input key-down="foo"}}` when a key is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`{{input key-down='foo'}}`, {
Expand Down Expand Up @@ -617,7 +617,7 @@ moduleFor(
['@test [DEPRECATED] sends an action with `{{input key-up="foo"}}` when a key is pressed'](
assert
) {
assert.expect(4);
assert.expect(3);

expectDeprecation(() => {
this.render(`{{input key-up='foo'}}`, {
Expand Down

0 comments on commit 6753f42

Please sign in to comment.