mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:41:25 +00:00
test(models): use lightweight clears in shared config setup
This commit is contained in:
@@ -15,8 +15,8 @@ import { loadValidConfigOrThrow, updateConfig } from "./shared.js";
|
|||||||
|
|
||||||
describe("models/shared", () => {
|
describe("models/shared", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mocks.readConfigFileSnapshot.mockReset();
|
mocks.readConfigFileSnapshot.mockClear();
|
||||||
mocks.writeConfigFile.mockReset();
|
mocks.writeConfigFile.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns config when snapshot is valid", async () => {
|
it("returns config when snapshot is valid", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user