@@ -83,17 +83,17 @@ describe('verifyInstalledVersion native', () => {
8383 ) . resolves . toEqual ( { ok : true , unverified : expect . stringContaining ( 'printed no version' ) } ) ;
8484 } ) ;
8585
86- it ( 'accepts the install unverified when the target is not a version' , async ( ) => {
86+ it ( 'checks nothing when the target is not a version' , async ( ) => {
8787 await expect (
8888 verifyInstalledVersion ( 'native' , 'latest' , NEVER_PROBED ) ,
89- ) . resolves . toEqual ( { ok : true , unverified : expect . stringContaining ( 'latest' ) } ) ;
89+ ) . resolves . toEqual ( { ok : true } ) ;
9090 } ) ;
9191} ) ;
9292
9393describe ( 'verifyInstalledVersion other sources' , ( ) => {
9494 // A global reinstall rewrites the directory this process was loaded from,
9595 // so nothing readable here proves what the next launch will run.
96- it ( 'leaves every non-native source unverified without probing' , async ( ) => {
96+ it ( 'checks nothing for a source it cannot prove, without probing' , async ( ) => {
9797 for ( const source of [
9898 'npm-global' ,
9999 'pnpm-global' ,
@@ -104,7 +104,7 @@ describe('verifyInstalledVersion other sources', () => {
104104 ] as const ) {
105105 await expect (
106106 verifyInstalledVersion ( source , '0.13.1' , NEVER_PROBED ) ,
107- ) . resolves . toEqual ( { ok : true , unverified : `not verified for ${ source } installs` } ) ;
107+ ) . resolves . toEqual ( { ok : true } ) ;
108108 }
109109 expect ( NEVER_PROBED . probeExecutableVersion ) . not . toHaveBeenCalled ( ) ;
110110 } ) ;
0 commit comments