@@ -20,7 +20,7 @@ import {
2020 init ,
2121 retryOrTimeout ,
2222} from "./api.ts" ;
23- import { clearEtags } from "./etags.js " ;
23+ import { clearEtags } from "./etags.ts " ;
2424import { mockLoggingFunctions } from "./test-utils/logging.mock.ts" ;
2525import { getBranchName } from "./utils.ts" ;
2626
@@ -30,7 +30,7 @@ vi.mock("@actions/github");
3030interface MockResponse {
3131 data : any ;
3232 status : number ;
33- headers : object ;
33+ headers : Record < string , string > ;
3434}
3535
3636function * mockPageIterator < T , P > (
@@ -615,10 +615,10 @@ describe("API", () => {
615615 // Behaviour
616616 // First API call will return 200 with an etag response header
617617 await fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ;
618- expect ( submittedEtag ) . eq ( null ) ;
618+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
619619 // Second API call with same parameters should pass the If-None-Match header
620620 await fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ;
621- expect ( submittedEtag ) . eq ( etag ) ;
621+ expect ( submittedEtag ) . toStrictEqual ( etag ) ;
622622
623623 // Logging
624624 assertOnlyCalled ( coreDebugLogMock ) ;
@@ -671,10 +671,10 @@ describe("API", () => {
671671 // Behaviour
672672 // First API call will return 200 with an etag response header
673673 await fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ;
674- expect ( submittedEtag ) . eq ( null ) ;
674+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
675675 // Second API call, without If-None-Match header because of different parameters
676676 await fetchWorkflowRunIds ( 1 , branch , startTimeISO ) ;
677- expect ( submittedEtag ) . eq ( null ) ;
677+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
678678
679679 // Logging
680680 assertOnlyCalled ( coreDebugLogMock ) ;
@@ -846,10 +846,10 @@ describe("API", () => {
846846 // Behaviour
847847 // First API call will return 200 with an etag response header
848848 await fetchWorkflowRunJobSteps ( 0 ) ;
849- expect ( submittedEtag ) . eq ( null ) ;
849+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
850850 // Second API call with same parameters should pass the If-None-Match header
851851 await fetchWorkflowRunJobSteps ( 0 ) ;
852- expect ( submittedEtag ) . eq ( etag ) ;
852+ expect ( submittedEtag ) . toStrictEqual ( etag ) ;
853853
854854 // Logging
855855 assertOnlyCalled ( coreDebugLogMock ) ;
@@ -904,10 +904,10 @@ describe("API", () => {
904904 // Behaviour
905905 // First API call will return 200 with an etag response header
906906 await fetchWorkflowRunJobSteps ( 0 ) ;
907- expect ( submittedEtag ) . eq ( null ) ;
907+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
908908 // Second API call, without If-None-Match header because of different parameters
909909 await fetchWorkflowRunJobSteps ( 1 ) ;
910- expect ( submittedEtag ) . eq ( null ) ;
910+ expect ( submittedEtag ) . toStrictEqual ( null ) ;
911911
912912 // Logging
913913 assertOnlyCalled ( coreDebugLogMock ) ;
0 commit comments