Skip to content

Commit

Permalink
Update params.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mansueli committed Jan 30, 2024
1 parent e4a86d8 commit af5e707
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/spec/params.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ describe('params reached to function', () => {
).toBe(true)
})

// todo: update test to check for the correct header value
test('invoke mirror with invoke header and valid region', async () => {
/**
* @feature headers
Expand All @@ -293,7 +292,10 @@ describe('params reached to function', () => {
})

log('assert no error')
expect(data).not.toBeNull()
expect(
(data?.headers as [Array<string>]).filter(([k, v]) => k === 'x-region' && v === FunctionRegion.EuWest1)
.length > 0
).toBe(true)
})

test('invoke mirror with body formData', async () => {
Expand Down

0 comments on commit af5e707

Please sign in to comment.