{"ScriptPreparationCode":null,"TestCases":[{"Name":"isCategory First","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.startsWith(\u0022$\u0022) || event.eventType.startsWith(\u0022$\u0022)\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.startsWith(\u0022$\u0022) || event.eventType.startsWith(\u0022$\u0022)\r\n\r\nvar result = (isSystemCategoryOrSystemEvent || !isCategory)","IsDeferred":false}]}