{"ScriptPreparationCode":null,"TestCases":[{"Name":"isCategoryFirst","Code":"const event = {\r\n streamId: \u0022$et-SomeEvent\u0022,\r\n type: \u0022$\u003E\u0022\r\n}\r\n\r\nconst isCategory = event.streamId.includes(\u0022-\u0022)\r\nconst isSystemCategoryOrSystemEvent = event.streamId.indexOf(\u0022$\u0022) == 0 || event.type.indexOf(\u0022$\u0022) == 0\r\n\r\nvar result = (!isCategory || isSystemCategoryOrSystemEvent)","IsDeferred":false},{"Name":"systemEventFirst","Code":"const event = {\r\n streamId: \u0022$et-SomeEvent\u0022,\r\n type: \u0022$\u003E\u0022\r\n}\r\n\r\nconst isCategory = event.streamId.includes(\u0022-\u0022)\r\nconst isSystemCategoryOrSystemEvent = event.streamId.indexOf(\u0022$\u0022) == 0 || event.type.indexOf(\u0022$\u0022) == 0\r\n\r\nvar result = (isSystemCategoryOrSystemEvent || !isCategory)","IsDeferred":false}]}