Skip to content

Commit 8e9ba8e

Browse files
committed
test should mismatch header key on case
1 parent b319bd8 commit 8e9ba8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambdas/authorizer/src/__tests__/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ describe('Authorizer Lambda Function', () => {
183183
}));
184184
});
185185

186-
it('Should allow the request when the supplier ID case mismatches', async () => {
187-
mockEvent.headers = { 'NHSD-Supplier-ID': 'Valid-Apim-Id' };
186+
it('Should allow the request when the supplier ID key case mismatches', async () => {
187+
mockEvent.headers = { 'nhsd-supplier-id': 'Valid-Apim-Id' };
188188
(mockedDeps.supplierRepo.getSupplierByApimId as jest.Mock).mockResolvedValue({
189189
id: 'supplier-123',
190190
apimApplicationId: 'valid-apim-id',

0 commit comments

Comments
 (0)