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 Jul 19, 2021
1 parent 7f8ef0e commit 3175b8c
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 @@ -557,7 +557,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 @@ -577,7 +577,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 @@ -593,7 +593,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 @@ -687,7 +687,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 @@ -705,7 +705,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 @@ -725,7 +725,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 @@ -741,7 +741,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 @@ -786,7 +786,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 @@ -387,7 +387,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 @@ -407,7 +407,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 @@ -423,7 +423,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 @@ -517,7 +517,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 @@ -535,7 +535,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 @@ -555,7 +555,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 @@ -571,7 +571,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 @@ -616,7 +616,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 3175b8c

Please sign in to comment.