File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments