diff --git a/src/lib/features/client-feature-toggles/tests/client-feature-toggles-auth.e2e.test.ts b/src/lib/features/client-feature-toggles/tests/client-feature-toggles-auth.e2e.test.ts index 683c8b70fb..833d5022a0 100644 --- a/src/lib/features/client-feature-toggles/tests/client-feature-toggles-auth.e2e.test.ts +++ b/src/lib/features/client-feature-toggles/tests/client-feature-toggles-auth.e2e.test.ts @@ -57,3 +57,12 @@ test('should allow requests to /api/client/features with x-unleash-auth header', .expect('Content-Type', /json/) .expect(200); }); + +test('should use x-unleash-auth if both headers are set', async () => { + await app.request + .get('/api/client/features') + .set('x-unleash-auth', clientToken.secret) + .set('authorization', 'gibberish') + .expect('Content-Type', /json/) + .expect(200); +});