Skip to content

Commit 588815a

Browse files
alan-agius4vikerman
authored andcommitted
test: follow up comments from #15173
1 parent ea44b0d commit 588815a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/legacy-cli/e2e/tests/misc/ask-analytics.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import {
55
waitForAnyProcessOutputToMatch,
66
} from '../../utils/process';
77

8-
const packages = require('../../../../../lib/packages').packages;
9-
108
export default async function() {
119
// Create a temporary directory to install the CLI
1210
await createDir('../ask-analytics');
@@ -17,7 +15,7 @@ export default async function() {
1715
// Install the CLI with TTY force enabled
1816
const execution = execWithEnv(
1917
'npm',
20-
['install', packages['@angular/cli'].tar, '--registry=http://localhost:4873'],
18+
['install', '@angular/cli', '--registry=http://localhost:4873'],
2119
{ ...process.env, 'NG_FORCE_TTY': '1' },
2220
);
2321

tests/legacy-cli/e2e/tests/schematics_cli/basic.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import * as path from 'path';
22
import { getGlobalVariable } from '../../utils/env';
33
import { exec, execAndWaitForOutputToMatch, silentNpm } from '../../utils/process';
44

5-
const packages = require('../../../../../lib/packages').packages;
6-
75
export default async function () {
86
// setup
97
const argv = getGlobalVariable('argv');
@@ -15,8 +13,7 @@ export default async function () {
1513
await silentNpm(
1614
'install',
1715
'-g',
18-
packages['@angular-devkit/schematics-cli'].tar,
19-
'--unsafe-perm',
16+
'@angular-devkit/schematics-cli',
2017
'--registry=http://localhost:4873',
2118
);
2219
await exec(process.platform.startsWith('win') ? 'where' : 'which', 'schematics');

0 commit comments

Comments
 (0)