{"ScriptPreparationCode":" let startDateRange = \u0027\u0027\r\n let endDateRange = \u0027\u0027\r\n let startDateRangeLabel = \u0027\u0027\r\n let endDateRangeLabel = \u0027\u0027\r\n const formRequestType = \u0027FORM_REQUEST_VIEW.SCHEDULED\u0027","TestCases":[{"Name":"Switch","Code":"const formRequestType = \u0027FORM_REQUEST_VIEW.SCHEDULED\u0027 \r\nswitch (formRequestType) {\r\n case \u0027FORM_REQUEST_VIEW.SENT\u0027:\r\n startDateRangeLabel = \u0027Sent from\u0027\r\n endDateRangeLabel = \u0027Sent to\u0027\r\n break\r\n case \u0027FORM_REQUEST_VIEW.SCHEDULED\u0027:\r\n startDateRangeLabel = \u0027Scheduled from\u0027\r\n endDateRangeLabel = \u0027Scheduled to\u0027\r\n break\r\n case \u0027FORM_REQUEST_VIEW.REQUEST_FORM\u0027:\r\n startDateRangeLabel = \u0027Submitted from\u0027\r\n endDateRangeLabel = \u0027Submitted to\u0027\r\n break\r\n default:\r\n }","IsDeferred":false},{"Name":"Object Literal","Code":"function getLabels (type) {\r\n var labels = {\r\n \u0027FORM_REQUEST_VIEW.SENT\u0027: () =\u003E { \r\n \tstartDateRangeLabel = \u0027Sent from\u0027\r\n \tendDateRangeLabel = \u0027Sent to\u0027\r\n },\r\n \u0027FORM_REQUEST_VIEW.SCHEDULED\u0027: () =\u003E { \r\n \tstartDateRangeLabel = \u0027Scheduled from\u0027\r\n \tendDateRangeLabel = \u0027Scheduled to\u0027\r\n },\r\n \u0027FORM_REQUEST_VIEW.REQUEST_FORM\u0027: () =\u003E { \r\n \tstartDateRangeLabel = \u0027Submitted from\u0027\r\n \tendDateRangeLabel = \u0027Submitted to\u0027\r\n },\r\n };\r\n return labels[type]();\r\n}\r\n\r\nvar lable = getLabels(\u0027FORM_REQUEST_VIEW.SCHEDULED\u0027);","IsDeferred":false}]}