mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 18:17:14 +00:00
test: merge duplicate plugin memory-none cases
This commit is contained in:
@@ -14,18 +14,17 @@ describe("normalizePluginsConfig", () => {
|
|||||||
expect(result.slots.memory).toBe("custom-memory");
|
expect(result.slots.memory).toBe("custom-memory");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("disables memory slot when set to 'none'", () => {
|
it("disables memory slot when set to 'none' (case insensitive)", () => {
|
||||||
const result = normalizePluginsConfig({
|
expect(
|
||||||
slots: { memory: "none" },
|
normalizePluginsConfig({
|
||||||
});
|
slots: { memory: "none" },
|
||||||
expect(result.slots.memory).toBeNull();
|
}).slots.memory,
|
||||||
});
|
).toBeNull();
|
||||||
|
expect(
|
||||||
it("disables memory slot when set to 'None' (case insensitive)", () => {
|
normalizePluginsConfig({
|
||||||
const result = normalizePluginsConfig({
|
slots: { memory: "None" },
|
||||||
slots: { memory: "None" },
|
}).slots.memory,
|
||||||
});
|
).toBeNull();
|
||||||
expect(result.slots.memory).toBeNull();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("trims whitespace from memory slot value", () => {
|
it("trims whitespace from memory slot value", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user