File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ describe('cron runner', () => {
8686 expect ( fetchMock ) . toHaveBeenCalledTimes ( 3 )
8787
8888 const headersUsed = fetchMock . mock . calls [ 0 ] ?. [ 1 ] ?. headers as Record < string , string >
89- expect ( headersUsed . Authorization ?? headersUsed . authorization ) . toBe ( 'Bearer cron-secret' )
89+ expect ( headersUsed [ ' Authorization' ] ?? headersUsed [ ' authorization' ] ) . toBe ( 'Bearer cron-secret' )
9090 } )
9191
9292 it ( 'surfaces downstream failure details' , async ( ) => {
Original file line number Diff line number Diff line change 11import type { APIRoute } from 'astro'
2- import { getCronSecret , getSiteUrl } from '@pages/api/_environment/environmentApi'
2+ import { getCronSecret } from '@pages/api/_environment/environmentApi'
3+ import { getSiteUrl } from '@pages/api/_environment/siteUrlApi'
34import { ApiFunctionError } from '@pages/api/_errors/ApiFunctionError'
45import { buildApiErrorResponse , handleApiFunctionError } from '@pages/api/_errors/apiFunctionHandler'
56import { createApiFunctionContext } from '@pages/api/_utils/requestContext'
You can’t perform that action at this time.
0 commit comments