@@ -103,8 +103,8 @@ describe("Feature: cors-helmet-security-headers, Property 2", () => {
103103 // Should echo the exact origin string (not true, not false)
104104 return (
105105 calledWith !== null &&
106- ( calledWith as any ) . err === null &&
107- ( calledWith as any ) . allow === origin
106+ ( calledWith as { err : unknown ; allow : unknown } ) . err === null &&
107+ ( calledWith as { err : unknown ; allow : unknown } ) . allow === origin
108108 ) ;
109109 } ,
110110 ) ,
@@ -141,8 +141,8 @@ describe("Feature: cors-helmet-security-headers, Property 3", () => {
141141 // Should call cb with an Error and false
142142 return (
143143 calledWith !== null &&
144- ( calledWith as any ) . err instanceof Error &&
145- ( calledWith as any ) . allow === false
144+ ( calledWith as { err : unknown ; allow : unknown } ) . err instanceof Error &&
145+ ( calledWith as { err : unknown ; allow : unknown } ) . allow === false
146146 ) ;
147147 } ,
148148 ) ,
@@ -159,7 +159,7 @@ describe("Feature: cors-helmet-security-headers, Property 4", () => {
159159 * Validates: Requirements 2.4
160160 */
161161 fc . assert (
162- fc . property ( fc . constant ( null ) , ( _ ) => {
162+ fc . property ( fc . constant ( null ) , ( ) => {
163163 return CORS_CONFIG . credentials === true ;
164164 } ) ,
165165 { numRuns : 100 } ,
@@ -175,7 +175,7 @@ describe("Feature: cors-helmet-security-headers, Property 5", () => {
175175 * Validates: Requirements 2.6, 2.7
176176 */
177177 fc . assert (
178- fc . property ( fc . constant ( null ) , ( _ ) => {
178+ fc . property ( fc . constant ( null ) , ( ) => {
179179 const requiredHeaders = [
180180 "Authorization" ,
181181 "Content-Type" ,
@@ -214,7 +214,7 @@ describe("Feature: cors-helmet-security-headers, Property 6", () => {
214214 fc . assert (
215215 fc . property (
216216 fc . array ( fc . string ( { minLength : 1 } ) , { minLength : 1 } ) ,
217- ( allowlist ) => {
217+ ( ) => {
218218 return (
219219 CORS_CONFIG . maxAge === 86400 &&
220220 CORS_CONFIG . optionsSuccessStatus === 204 &&
0 commit comments