@@ -207,29 +207,6 @@ describe('setup-go', () => {
207
207
expect ( fileName ) . toBe ( 'go1.14rc1.linux-amd64.tar.gz' ) ;
208
208
} ) ;
209
209
210
- it ( 'evaluates to stable with input as true' , async ( ) => {
211
- inputs [ 'go-version' ] = '1.13.0' ;
212
- inputs . stable = 'true' ;
213
-
214
- let toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
215
- findSpy . mockImplementation ( ( ) => toolPath ) ;
216
- await main . run ( ) ;
217
-
218
- expect ( logSpy ) . toHaveBeenCalledWith ( `Setup go stable version spec 1.13.0` ) ;
219
- } ) ;
220
-
221
- it ( 'evaluates to stable with no input' , async ( ) => {
222
- inputs [ 'go-version' ] = '1.13.0' ;
223
-
224
- inSpy . mockImplementation ( name => inputs [ name ] ) ;
225
-
226
- let toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
227
- findSpy . mockImplementation ( ( ) => toolPath ) ;
228
- await main . run ( ) ;
229
-
230
- expect ( logSpy ) . toHaveBeenCalledWith ( `Setup go stable version spec 1.13.0` ) ;
231
- } ) ;
232
-
233
210
it ( 'finds a version of go already in the cache' , async ( ) => {
234
211
inputs [ 'go-version' ] = '1.13.0' ;
235
212
@@ -393,7 +370,6 @@ describe('setup-go', () => {
393
370
await main . run ( ) ;
394
371
395
372
let expPath = path . join ( toolPath , 'bin' ) ;
396
- expect ( logSpy ) . toHaveBeenCalledWith ( 'Setup go stable version spec 1.12.14' ) ;
397
373
expect ( findSpy ) . toHaveBeenCalled ( ) ;
398
374
expect ( logSpy ) . toHaveBeenCalledWith ( 'Attempting to download 1.12.14...' ) ;
399
375
expect ( dlSpy ) . toHaveBeenCalled ( ) ;
@@ -605,7 +581,6 @@ describe('setup-go', () => {
605
581
606
582
await main . run ( ) ;
607
583
608
- expect ( logSpy ) . toHaveBeenCalledWith ( 'Setup go stable version spec 1.16' ) ;
609
584
expect ( logSpy ) . toHaveBeenCalledWith ( `Found in cache @ ${ toolPath } ` ) ;
610
585
} ) ;
611
586
@@ -629,9 +604,6 @@ describe('setup-go', () => {
629
604
630
605
await main . run ( ) ;
631
606
632
- expect ( logSpy ) . toHaveBeenCalledWith (
633
- `Setup go stable version spec ${ versionSpec } `
634
- ) ;
635
607
expect ( logSpy ) . toHaveBeenCalledWith (
636
608
'Attempting to resolve the latest version from the manifest...'
637
609
) ;
0 commit comments