@@ -839,9 +839,9 @@ describe('setup-node', () => {
839
839
) ;
840
840
} ) ;
841
841
842
- it ( 'find latest LTS version and resolve it from local cache (lts/-2 )' , async ( ) => {
842
+ it ( 'find latest LTS version and resolve it from local cache (lts/-1 )' , async ( ) => {
843
843
// arrange
844
- inputs [ 'node-version' ] = 'lts/-2 ' ;
844
+ inputs [ 'node-version' ] = 'lts/-1 ' ;
845
845
846
846
const toolPath = path . normalize ( '/cache/node/12.16.2/x64' ) ;
847
847
findSpy . mockReturnValue ( toolPath ) ;
@@ -858,20 +858,20 @@ describe('setup-node', () => {
858
858
) ;
859
859
expect ( dbgSpy ) . not . toHaveBeenCalledWith ( 'No manifest cached' ) ;
860
860
expect ( dbgSpy ) . toHaveBeenCalledWith (
861
- `LTS alias '-2 ' for Node version 'lts/-2 '`
861
+ `LTS alias '-1 ' for Node version 'lts/-1 '`
862
862
) ;
863
863
expect ( dbgSpy ) . toHaveBeenCalledWith (
864
- `Found LTS release '12.16.2' for Node version 'lts/-2 '`
864
+ `Found LTS release '12.16.2' for Node version 'lts/-1 '`
865
865
) ;
866
866
expect ( logSpy ) . toHaveBeenCalledWith ( `Found in cache @ ${ toolPath } ` ) ;
867
867
expect ( cnSpy ) . toHaveBeenCalledWith (
868
868
`::add-path::${ path . join ( toolPath , 'bin' ) } ${ osm . EOL } `
869
869
) ;
870
870
} ) ;
871
871
872
- it ( 'find latest LTS version and install it from manifest (lts/-2 )' , async ( ) => {
872
+ it ( 'find latest LTS version and install it from manifest (lts/-1 )' , async ( ) => {
873
873
// arrange
874
- inputs [ 'node-version' ] = 'lts/-2 ' ;
874
+ inputs [ 'node-version' ] = 'lts/-1 ' ;
875
875
876
876
const toolPath = path . normalize ( '/cache/node/12.16.2/x64' ) ;
877
877
findSpy . mockImplementation ( ( ) => '' ) ;
@@ -893,10 +893,10 @@ describe('setup-node', () => {
893
893
) ;
894
894
expect ( dbgSpy ) . not . toHaveBeenCalledWith ( 'No manifest cached' ) ;
895
895
expect ( dbgSpy ) . toHaveBeenCalledWith (
896
- `LTS alias '-2 ' for Node version 'lts/-2 '`
896
+ `LTS alias '-1 ' for Node version 'lts/-1 '`
897
897
) ;
898
898
expect ( dbgSpy ) . toHaveBeenCalledWith (
899
- `Found LTS release '12.16.2' for Node version 'lts/-2 '`
899
+ `Found LTS release '12.16.2' for Node version 'lts/-1 '`
900
900
) ;
901
901
expect ( logSpy ) . toHaveBeenCalledWith ( 'Attempting to download 12...' ) ;
902
902
expect ( logSpy ) . toHaveBeenCalledWith (
0 commit comments