@@ -188,10 +188,6 @@ test(
188188) ;
189189
190190function runGetDiffRanges ( changes : number , patch : string [ ] | undefined ) : any {
191- sinon
192- . stub ( actionsUtil , "getRequiredInput" )
193- . withArgs ( "checkout_path" )
194- . returns ( "/checkout/path" ) ;
195191 return exportedForTesting . getDiffRanges (
196192 {
197193 filename : "test.txt" ,
@@ -211,7 +207,7 @@ test("getDiffRanges: file diff too large", async (t) => {
211207 const diffRanges = runGetDiffRanges ( 1000000 , undefined ) ;
212208 t . deepEqual ( diffRanges , [
213209 {
214- path : "/checkout/path/ test.txt" ,
210+ path : "test.txt" ,
215211 startLine : 0 ,
216212 endLine : 0 ,
217213 } ,
@@ -232,7 +228,7 @@ test("getDiffRanges: diff thunk with single addition range", async (t) => {
232228 ] ) ;
233229 t . deepEqual ( diffRanges , [
234230 {
235- path : "/checkout/path/ test.txt" ,
231+ path : "test.txt" ,
236232 startLine : 53 ,
237233 endLine : 54 ,
238234 } ,
@@ -268,7 +264,7 @@ test("getDiffRanges: diff thunk with single update range", async (t) => {
268264 ] ) ;
269265 t . deepEqual ( diffRanges , [
270266 {
271- path : "/checkout/path/ test.txt" ,
267+ path : "test.txt" ,
272268 startLine : 53 ,
273269 endLine : 53 ,
274270 } ,
@@ -290,12 +286,12 @@ test("getDiffRanges: diff thunk with addition ranges", async (t) => {
290286 ] ) ;
291287 t . deepEqual ( diffRanges , [
292288 {
293- path : "/checkout/path/ test.txt" ,
289+ path : "test.txt" ,
294290 startLine : 53 ,
295291 endLine : 53 ,
296292 } ,
297293 {
298- path : "/checkout/path/ test.txt" ,
294+ path : "test.txt" ,
299295 startLine : 55 ,
300296 endLine : 55 ,
301297 } ,
@@ -322,12 +318,12 @@ test("getDiffRanges: diff thunk with mixed ranges", async (t) => {
322318 ] ) ;
323319 t . deepEqual ( diffRanges , [
324320 {
325- path : "/checkout/path/ test.txt" ,
321+ path : "test.txt" ,
326322 startLine : 54 ,
327323 endLine : 54 ,
328324 } ,
329325 {
330- path : "/checkout/path/ test.txt" ,
326+ path : "test.txt" ,
331327 startLine : 57 ,
332328 endLine : 58 ,
333329 } ,
@@ -357,12 +353,12 @@ test("getDiffRanges: multiple diff thunks", async (t) => {
357353 ] ) ;
358354 t . deepEqual ( diffRanges , [
359355 {
360- path : "/checkout/path/ test.txt" ,
356+ path : "test.txt" ,
361357 startLine : 53 ,
362358 endLine : 54 ,
363359 } ,
364360 {
365- path : "/checkout/path/ test.txt" ,
361+ path : "test.txt" ,
366362 startLine : 153 ,
367363 endLine : 154 ,
368364 } ,
@@ -373,7 +369,7 @@ test("getDiffRanges: no diff context lines", async (t) => {
373369 const diffRanges = runGetDiffRanges ( 2 , [ "@@ -30 +50,2 @@" , "+1" , "+2" ] ) ;
374370 t . deepEqual ( diffRanges , [
375371 {
376- path : "/checkout/path/ test.txt" ,
372+ path : "test.txt" ,
377373 startLine : 50 ,
378374 endLine : 51 ,
379375 } ,
0 commit comments