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