{"ScriptPreparationCode":"const contentType = \u0027text/plain\u0027","TestCases":[{"Name":"switchCase","Code":"const contentType = \u0027text/plain\u0027\r\nconst response = \u0027something\u0027\r\nswitch (true) {\r\n case contentType.includes(\u0027application/json\u0027):\r\n return response\r\n case contentType.includes(\u0027application/xml\u0027):\r\n case contentType.includes(\u0027text/xml\u0027) :\r\n case contentType.includes(\u0027text/plain\u0027) :\r\n case contentType.includes(\u0027application/session-v1\u002Bjson\u0027):\r\n return response\r\n\r\n default:\r\n // Handle other content types or throw an error\r\n throw new Error(\u0027Unsupported content type: \u0027 \u002B contentType)\r\n }","IsDeferred":false},{"Name":"nestedIf","Code":"const contentType = \u0027text/plain\u0027 \r\nconst response = \u0027something\u0027\r\nif (contentType) {\r\n if (contentType.includes(\u0027application/json\u0027)) {\r\n return response\r\n } else if (contentType.includes(\u0027application/xml\u0027) || contentType.includes(\u0027text/xml\u0027) || contentType.includes(\u0027text/plain\u0027) || contentType.includes(\u0027application/session-v1\u002Bjson\u0027)) {\r\n return response\r\n }\r\n // Handle other content types or throw an error\r\n throw new Error(\u0027Unsupported content type: \u0027 \u002B contentType)\r\n }","IsDeferred":false}]}