mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-18 12:08:52 +00:00
test: tighten browser logger settings assertion
This commit is contained in:
@@ -61,9 +61,10 @@ describe("logging/logger browser-safe import", () => {
|
||||
it("disables file logging when imported in a browser-like environment", async () => {
|
||||
const { module, resolvePreferredOpenClawTmpDir } = await importBrowserSafeLogger();
|
||||
|
||||
expect(module.getResolvedLoggerSettings()).toMatchObject({
|
||||
expect(module.getResolvedLoggerSettings()).toStrictEqual({
|
||||
level: "silent",
|
||||
file: "/tmp/openclaw/openclaw.log",
|
||||
maxFileBytes: 100 * 1024 * 1024,
|
||||
});
|
||||
expect(module.isFileLogLevelEnabled("info")).toBe(false);
|
||||
expect(module.getLogger().info("browser-safe")).toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user