Unified · Split
| @@ -70,22 +70,22 @@ describe("ProcessDiagnostics", () => { · 69 unmodified lines | ||
| 70 | 70 | it.effect("parses Windows process JSON through Schema and skips invalid rows", () => |
| 71 | 71 | Effect.sync(() => { |
| 72 | 72 | const rows = ProcessDiagnostics.parseWindowsProcessRows( |
| 73 | − JSON.stringify([ | |
| 73 | + `[ | |
| 74 | 74 | { |
| 75 | − ProcessId: 10, | |
| 76 | − ParentProcessId: 1, | |
| 77 | − CommandLine: "", | |
| 78 | − Name: "node.exe", | |
| 79 | − Status: "", | |
| 80 | − WorkingSetSize: 1024.4, | |
| 81 | − PercentProcessorTime: 12.5, | |
| 75 | + "ProcessId": 10, | |
| 76 | + "ParentProcessId": 1, | |
| 77 | + "CommandLine": "", | |
| 78 | + "Name": "node.exe", | |
| 79 | + "Status": "", | |
| 80 | + "WorkingSetSize": 1024.4, | |
| 81 | + "PercentProcessorTime": 12.5 | |
| 82 | 82 | }, |
| 83 | 83 | { |
| 84 | − ProcessId: "not-a-number", | |
| 85 | − ParentProcessId: 1, | |
| 86 | − Name: "bad.exe", | |
| 87 | − }, | |
| 88 | − ]), | |
| 84 | + "ProcessId": "not-a-number", | |
| 85 | + "ParentProcessId": 1, | |
| 86 | + "Name": "bad.exe" | |
| 87 | + } | |
| 88 | + ]`, | |
| 89 | 89 | ); |
| 90 | 90 | |
| 91 | 91 | assert.deepEqual(rows, [ |