Skip to content

Commit afe22b4

Browse files
committed
test(@angular/cli): remove unscoped authentication test cases from registry tests
1 parent da23ee7 commit afe22b4

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

tests/legacy-cli/e2e/tests/update/update-secure-registry.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,13 @@ export default async function () {
1616
}
1717

1818
// Valid authentication token
19-
await createNpmConfigForAuthentication(false);
20-
const { stdout: stdout1 } = await ng('update', ...extraArgs);
21-
if (!stdout1.includes(worksMessage)) {
22-
throw new Error(`Expected stdout to contain "${worksMessage}"`);
23-
}
24-
25-
await createNpmConfigForAuthentication(true);
19+
await createNpmConfigForAuthentication();
2620
const { stdout: stdout2 } = await ng('update', ...extraArgs);
2721
if (!stdout2.includes(worksMessage)) {
2822
throw new Error(`Expected stdout to contain "${worksMessage}"`);
2923
}
3024

3125
// Invalid authentication token
32-
await createNpmConfigForAuthentication(false, true);
33-
await expectToFail(() => ng('update', ...extraArgs));
34-
3526
await createNpmConfigForAuthentication(true, true);
3627
await expectToFail(() => ng('update', ...extraArgs));
3728

tests/legacy-cli/e2e/utils/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function createNpmConfigForAuthentication(
5858
* _auth="dGVzdGluZzpzM2NyZXQ="`
5959
* ```
6060
*/
61-
scopedAuthentication: boolean,
61+
scopedAuthentication = true,
6262
/** When true, an incorrect token is used. Use this to validate authentication failures. */
6363
invalidToken = false,
6464
): Promise<void> {

0 commit comments

Comments
 (0)