All files / src/utils/integrations handleDefaultValues.ts

37.5% Statements 3/8
0% Branches 0/2
0% Functions 0/1
37.5% Lines 3/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 141x 1x   1x                    
import { store } from "../../store/index.ts";
import { setKey } from "../../store/features/integrations/integrationsSlice.ts";
 
export default function handleDefaultValues(data: any) {
  const keyType = data.key_type;
  switch (keyType) {
    case "SSL_VERIFY":
      store.dispatch(setKey({ key: data.key_type, value: true }));
      break;
    default:
      return;
  }
}