Skip to content

Commit

Permalink
test: ensure localize package is not initially present in E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin committed Sep 18, 2024
1 parent f249e7e commit 33e6cb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/legacy-cli/e2e/tests/i18n/extract-ivy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default async function () {
`,
);

// Ensure localize package is not present initially
await uninstallPackage('@angular/localize');

// Should fail if `@angular/localize` is missing
const { message: message1 } = await expectToFail(() => ng('extract-i18n'));
if (!message1.includes(`i18n extraction requires the '@angular/localize' package.`)) {
Expand Down

0 comments on commit 33e6cb0

Please sign in to comment.