Skip to content

Commit 036be17

Browse files
committed
test(proxy): update the CORS policy assertion to the served method list
`proxy.test.ts` pinned the previous hand-written method string, so widening `resolveApiCorsPolicy` to advertise PATCH and HEAD left it asserting a list the middleware no longer returns. The literal is kept rather than imported from `proxy.ts` so the test still pins the exact wire value independently of the implementation.
1 parent f7e6cbd commit 036be17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/proxy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('resolveApiCorsPolicy', () => {
127127
expect(policy).toEqual({
128128
origin: 'https://app.sim.test',
129129
credentials: true,
130-
methods: 'GET,POST,OPTIONS,PUT,DELETE',
130+
methods: 'GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS',
131131
headers: expect.stringContaining('Authorization'),
132132
})
133133
})

0 commit comments

Comments
 (0)