@@ -3,14 +3,13 @@ import { uninstallPackage } from '../../../utils/packages';
3
3
import { ng } from '../../../utils/process' ;
4
4
import { isPrereleaseCli } from '../../../utils/project' ;
5
5
6
-
7
6
export default async function ( ) {
8
7
// forcibly remove in case another test doesn't clean itself up.
9
8
await rimraf ( 'node_modules/@angular/localize' ) ;
10
9
11
- const tag = await isPrereleaseCli ( ) ? '@next' : '' ;
10
+ const tag = ( await isPrereleaseCli ( ) ) ? '@next' : '' ;
12
11
13
- await ng ( 'add' , `@angular/localize${ tag } ` , '--skip-confirmation' ) ;
12
+ await ng ( 'add' , `@angular/localize${ tag } ` , '--skip-confirmation' ) ;
14
13
await expectFileToMatch ( 'package.json' , / @ a n g u l a r \/ l o c a l i z e / ) ;
15
14
16
15
const output1 = await ng ( 'add' , '@angular/localize' , '--skip-confirmation' ) ;
@@ -23,12 +22,12 @@ export default async function () {
23
22
throw new Error ( 'Installation should not have been skipped' ) ;
24
23
}
25
24
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' ) ;
27
26
if ( output3 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
28
27
throw new Error ( 'Installation should not have been skipped' ) ;
29
28
}
30
29
31
- const output4 = await ng ( 'add' , '@angular/localize@10 ' , '--skip-confirmation' ) ;
30
+ const output4 = await ng ( 'add' , '@angular/localize@12 ' , '--skip-confirmation' ) ;
32
31
if ( ! output4 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
33
32
throw new Error ( 'Installation was not skipped' ) ;
34
33
}
0 commit comments