All files / react-app/src/utils labelMappers.ts

83.33% Statements 10/12
80% Branches 8/10
100% Functions 1/1
83.33% Lines 10/12

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 14 15 16 17 18 19 20 21 22 23 24 25 26 27    72x 562x   45x   23x   193x   23x   64x   41x   41x       132x          
import { Action } from "shared-types/actions";
 
export const mapActionLabel = (a: Action) => {
  switch (a) {
    case Action.ENABLE_RAI_WITHDRAW:
      return "Enable Formal RAI Response Withdraw";
    case Action.DISABLE_RAI_WITHDRAW:
      return "Disable Formal RAI Response Withdraw";
    case Action.WITHDRAW_PACKAGE:
      return "Withdraw Package";
    case Action.WITHDRAW_RAI:
      return "Withdraw Formal RAI Response";
    case Action.RESPOND_TO_RAI:
      return "Respond to Formal RAI";
    case Action.TEMP_EXTENSION:
      return "Request Temporary Extension";
    case Action.AMEND_WAIVER:
      return "Add Amendment";
    case Action.UPDATE_ID:
      return "Update ID";
    case Action.UPLOAD_SUBSEQUENT_DOCUMENTS:
      return "Upload Subsequent Documents";
    default:
      return "";
  }
};