@@ -76,7 +76,7 @@ describe('Tool Tests', function () {
76
76
return new Promise < void > ( async ( resolve , reject ) => {
77
77
try {
78
78
79
- let downPath : string = await toolLib . downloadTool ( "http ://microsoft.com/redirect-to" ) ;
79
+ let downPath : string = await toolLib . downloadTool ( "https ://microsoft.com/redirect-to" ) ;
80
80
toolLib . debug ( 'downloaded path: ' + downPath ) ;
81
81
82
82
assert ( tl . exist ( downPath ) , 'downloaded file exists' ) ;
@@ -95,7 +95,7 @@ describe('Tool Tests', function () {
95
95
try {
96
96
let tempDownloadFolder : string = 'temp_' + Math . floor ( Math . random ( ) * 2000000000 ) ;
97
97
let aboslutePath : string = path . join ( tempPath , tempDownloadFolder ) ;
98
- let downPath : string = await toolLib . downloadTool ( "http ://microsoft.com/bytes/35" , aboslutePath ) ;
98
+ let downPath : string = await toolLib . downloadTool ( "https ://microsoft.com/bytes/35" , aboslutePath ) ;
99
99
toolLib . debug ( 'downloaded path: ' + downPath ) ;
100
100
101
101
assert ( tl . exist ( downPath ) , 'downloaded file exists' ) ;
@@ -110,7 +110,7 @@ describe('Tool Tests', function () {
110
110
} ) ;
111
111
112
112
it ( 'has status code in exception dictionary for HTTP error code responses' , async function ( ) {
113
- nock ( 'http ://microsoft.com' )
113
+ nock ( 'https ://microsoft.com' )
114
114
. get ( '/bytes/bad' )
115
115
. reply ( 400 , {
116
116
username : 'bad' ,
@@ -119,7 +119,7 @@ describe('Tool Tests', function () {
119
119
120
120
return new Promise < void > ( async ( resolve , reject ) => {
121
121
try {
122
- let errorCodeUrl : string = "http ://microsoft.com/bytes/bad" ;
122
+ let errorCodeUrl : string = "https ://microsoft.com/bytes/bad" ;
123
123
let downPath : string = await toolLib . downloadTool ( errorCodeUrl ) ;
124
124
125
125
reject ( 'a file was downloaded but it shouldnt have been' ) ;
@@ -472,4 +472,4 @@ describe('Tool Tests', function () {
472
472
}
473
473
} ) ;
474
474
} ) ;
475
- } ) ;
475
+ } ) ;
0 commit comments