{"ScriptPreparationCode":null,"TestCases":[{"Name":"switch true","Code":"var hostname = \u0022google.com\u0022;\r\nswitch (true) {\r\n case hostname === \u0022localhost\u0022:\r\n return \u0022localhost\u0022;\r\n case hostname.startsWith(\u0022sandpit-\u0022):\r\n return \u0022https://auth-sandpit.com\u0022;\r\n case hostname.includes(\u0022dev.com\u0022):\r\n return \u0060https://qa-devau.auth0.com\u0060;\r\n default:\r\n return \u0022https://auth.com\u0022;\r\n }","IsDeferred":false},{"Name":"if-else","Code":"var hostname = \u0022google.com\u0022;\r\n\r\n if( hostname === \u0022localhost\u0022) {\r\n return \u0022localhost\u0022;\r\n } else if(hostname.startsWith(\u0022sandpit-\u0022)) {\r\n return \u0022https://auth-sandpit.com\u0022;\r\n } else if(hostname.includes(\u0022dev.com\u0022)) {\r\n return \u0060https://qa-devau.auth0.com\u0060;\r\n } else {\r\n return \u0022https://auth.com\u0022;\r\n }","IsDeferred":false}]}