{"ScriptPreparationCode":"function checkUsingSplit(uri) {\r\n return uri.split(\u0027.\u0027).pop() === \u0027html\u0027;\r\n}\r\n\r\nfunction checkUsingEndsWith(uri) {\r\n return uri.endsWith(\u0027.html\u0027);\r\n}\r\n\r\nfunction checkUsingSlice(uri) {\r\n return uri.slice(-5) === \u0027.html\u0027;\r\n}","TestCases":[{"Name":"Split Positive","Code":"checkUsingSplit(\u0027/example/path/index.html\u0027);","IsDeferred":false},{"Name":"Split Negative","Code":"checkUsingSplit(\u0027/example/path/index\u0027);","IsDeferred":false},{"Name":"EndsWith Positive","Code":"checkUsingEndsWith(\u0027/example/path/index.html\u0027);","IsDeferred":false},{"Name":"EndsWith Negative","Code":"checkUsingEndsWith(\u0027/example/path/index\u0027);","IsDeferred":false},{"Name":"Slice Positive","Code":"checkUsingSlice(\u0027/example/path/index.html\u0027);","IsDeferred":false},{"Name":"Slice Negative","Code":"checkUsingSlice(\u0027/example/path/index\u0027);","IsDeferred":false}]}