Skip to content

Commit

Permalink
Fix tests when deprecations are enabled
Browse files Browse the repository at this point in the history
(cherry picked from commit aee277e)
  • Loading branch information
NullVoxPopuli authored and kategengler committed May 14, 2024
1 parent 2f8fa6d commit 0b2767d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
defineSimpleHelper,
defineSimpleModifier,
testUnless,
expectDeprecation,
} from 'internal-test-helpers';

import { Input, Textarea } from '@ember/component';
Expand Down Expand Up @@ -268,6 +269,11 @@ moduleFor(
[`${testUnless(DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION.isRemoved)} Can use action helper`](
assert
) {
expectDeprecation(
/Migrate to native functions/,
DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION.isEnabled
);

let called = 0;

let Foo = defineComponent(
Expand All @@ -294,6 +300,11 @@ moduleFor(
[`${testUnless(DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION.isRemoved)} Can use action modifier`](
assert
) {
expectDeprecation(
/Migrate to native functions/,
DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION.isEnabled
);

let called = 0;

let Foo = defineComponent(
Expand Down

0 comments on commit 0b2767d

Please sign in to comment.