Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida committed Feb 5, 2024
1 parent 35b1f0f commit a03e5ae
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ describe('shadowSupportMode static property', () => {
}).not.toLogErrorDev();
});

it('should not log error for deprecated value "any"', () => {
// TODO [#3971]: Completely remove shadowSupportMode "any"
it('should warn for deprecated value "any"', () => {
expect(() => {
createElement('x-any', { is: Any });
}).not.toLogErrorDev(/Invalid value for static property shadowSupportMode/);
});

it('should log warning for deprecated value "any"', () => {
expect(() => {
createElement('x-any', { is: Any });
}).toLogWarningDev(
/Invalid value 'any' for static property shadowSupportMode\. 'any' is deprecated and will be removed in a future release--use 'native' instead\./
);
}).toLogWarningDev(/Invalid value 'any' for static property shadowSupportMode/);
});
});

Expand Down

0 comments on commit a03e5ae

Please sign in to comment.