mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 09:40:43 +00:00
test: tighten ui log parser assertion
This commit is contained in:
@@ -17,12 +17,9 @@ describe("parseLogLine", () => {
|
||||
time: "2026-03-13T14:07:12.138-05:00",
|
||||
});
|
||||
|
||||
expect(parseLogLine(line)).toEqual(
|
||||
expect.objectContaining({
|
||||
level: "warn",
|
||||
subsystem: "gateway/ws",
|
||||
message: "closed before connect conn=abc code=4008 reason=connect failed",
|
||||
}),
|
||||
);
|
||||
const parsed = parseLogLine(line);
|
||||
expect(parsed.level).toBe("warn");
|
||||
expect(parsed.subsystem).toBe("gateway/ws");
|
||||
expect(parsed.message).toBe("closed before connect conn=abc code=4008 reason=connect failed");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user