mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten helper empty object assertions
This commit is contained in:
@@ -59,7 +59,7 @@ describe("infra store", () => {
|
|||||||
|
|
||||||
const result = readSessionStoreJson5(storePath);
|
const result = readSessionStoreJson5(storePath);
|
||||||
expect(result.ok).toBe(false);
|
expect(result.ok).toBe(false);
|
||||||
expect(result.store).toEqual({});
|
expect(result.store).toStrictEqual({});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ describe("createChannelTestPluginBase", () => {
|
|||||||
expect(base.meta.docsPath).toBe("/channels/demo-channel");
|
expect(base.meta.docsPath).toBe("/channels/demo-channel");
|
||||||
expect(base.capabilities.chatTypes).toEqual(["direct"]);
|
expect(base.capabilities.chatTypes).toEqual(["direct"]);
|
||||||
expect(base.config.listAccountIds(cfg)).toEqual(["default"]);
|
expect(base.config.listAccountIds(cfg)).toEqual(["default"]);
|
||||||
expect(base.config.resolveAccount(cfg)).toEqual({});
|
expect(base.config.resolveAccount(cfg)).toStrictEqual({});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("honors config and metadata overrides", async () => {
|
it("honors config and metadata overrides", async () => {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ describe("loadVitestExperimentalConfig", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("disables the filesystem module cache by default on Windows", () => {
|
it("disables the filesystem module cache by default on Windows", () => {
|
||||||
expect(loadVitestExperimentalConfig({}, "win32")).toEqual({});
|
expect(loadVitestExperimentalConfig({}, "win32")).toStrictEqual({});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("still allows enabling the filesystem module cache explicitly on Windows", () => {
|
it("still allows enabling the filesystem module cache explicitly on Windows", () => {
|
||||||
@@ -68,7 +68,7 @@ describe("loadVitestExperimentalConfig", () => {
|
|||||||
},
|
},
|
||||||
"linux",
|
"linux",
|
||||||
),
|
),
|
||||||
).toEqual({});
|
).toStrictEqual({});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("enables import timing output and import breakdown reporting", () => {
|
it("enables import timing output and import breakdown reporting", () => {
|
||||||
@@ -90,6 +90,6 @@ describe("loadVitestExperimentalConfig", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("uses RUNNER_OS to detect Windows even when the platform is not win32", () => {
|
it("uses RUNNER_OS to detect Windows even when the platform is not win32", () => {
|
||||||
expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toEqual({});
|
expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toStrictEqual({});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user