test(kubernetes-backend): Fix test mocking for headers

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2023-06-16 21:50:00 -05:00
parent 11fad09c74
commit b7267331b9
@@ -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': {