Skip to content

Commit e47c4a5

Browse files
committed
test(@angular/cli): update @angular/localize version to 12
This is needed because prior versions used the deprecated id instead of $id in the schema.
1 parent 0c92ea5 commit e47c4a5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/legacy-cli/e2e/tests/commands/add/version-specifier.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ import { uninstallPackage } from '../../../utils/packages';
33
import { ng } from '../../../utils/process';
44
import { isPrereleaseCli } from '../../../utils/project';
55

6-
76
export default async function () {
87
// forcibly remove in case another test doesn't clean itself up.
98
await rimraf('node_modules/@angular/localize');
109

11-
const tag = await isPrereleaseCli() ? '@next' : '';
10+
const tag = (await isPrereleaseCli()) ? '@next' : '';
1211

13-
await ng('add', `@angular/localize${tag}`, '--skip-confirmation');
12+
await ng('add', `@angular/localize${tag}`, '--skip-confirmation');
1413
await expectFileToMatch('package.json', /@angular\/localize/);
1514

1615
const output1 = await ng('add', '@angular/localize', '--skip-confirmation');
@@ -23,12 +22,12 @@ export default async function () {
2322
throw new Error('Installation should not have been skipped');
2423
}
2524

26-
const output3 = await ng('add', '@angular/localize@10.0.0', '--skip-confirmation');
25+
const output3 = await ng('add', '@angular/localize@12.0.0', '--skip-confirmation');
2726
if (output3.stdout.includes('Skipping installation: Package already installed')) {
2827
throw new Error('Installation should not have been skipped');
2928
}
3029

31-
const output4 = await ng('add', '@angular/localize@10', '--skip-confirmation');
30+
const output4 = await ng('add', '@angular/localize@12', '--skip-confirmation');
3231
if (!output4.stdout.includes('Skipping installation: Package already installed')) {
3332
throw new Error('Installation was not skipped');
3433
}

0 commit comments

Comments
 (0)