@@ -57,8 +57,7 @@ describe('withClerkMiddleware(options)', () => {
5757 expect ( response . body ) . toEqual ( JSON . stringify ( { auth : 'mockedAuth' } ) ) ;
5858 expect ( authenticateRequestMock ) . toBeCalledWith (
5959 expect . objectContaining ( {
60- secretKey : 'TEST_API_KEY' ,
61- apiKey : 'TEST_API_KEY' ,
60+ secretKey : 'TEST_SECRET_KEY' ,
6261 request : expect . any ( Request ) ,
6362 } ) ,
6463 ) ;
@@ -97,8 +96,7 @@ describe('withClerkMiddleware(options)', () => {
9796 expect ( response . body ) . toEqual ( JSON . stringify ( { auth : 'mockedAuth' } ) ) ;
9897 expect ( authenticateRequestMock ) . toBeCalledWith (
9998 expect . objectContaining ( {
100- secretKey : 'TEST_API_KEY' ,
101- apiKey : 'TEST_API_KEY' ,
99+ secretKey : 'TEST_SECRET_KEY' ,
102100 request : expect . any ( Request ) ,
103101 } ) ,
104102 ) ;
@@ -193,8 +191,7 @@ describe('withClerkMiddleware(options)', () => {
193191 expect ( response . body ) . toEqual ( JSON . stringify ( { auth : 'mockedAuth' } ) ) ;
194192 expect ( authenticateRequestMock ) . toBeCalledWith (
195193 expect . objectContaining ( {
196- secretKey : 'TEST_API_KEY' ,
197- apiKey : 'TEST_API_KEY' ,
194+ secretKey : 'TEST_SECRET_KEY' ,
198195 request : expect . any ( Request ) ,
199196 } ) ,
200197 ) ;
0 commit comments