test(kubernetes-backend): Fix test mocking for headers
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
@@ -54,6 +54,10 @@ describe('KubernetesProxy', () => {
|
||||
params: {
|
||||
path,
|
||||
},
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
[HEADER_KUBERNETES_CLUSTER.toLowerCase()]: clusterName,
|
||||
},
|
||||
header: jest.fn((key: string) => {
|
||||
switch (key) {
|
||||
case 'Content-Type': {
|
||||
|
||||
Reference in New Issue
Block a user