mirror of https://github.com/openclaw/openclaw.git
test(models): use lightweight clears in shared config setup
This commit is contained in:
parent
e729c992a7
commit
649e910465
|
|
@ -15,8 +15,8 @@ import { loadValidConfigOrThrow, updateConfig } from "./shared.js";
|
|||
|
||||
describe("models/shared", () => {
|
||||
beforeEach(() => {
|
||||
mocks.readConfigFileSnapshot.mockReset();
|
||||
mocks.writeConfigFile.mockReset();
|
||||
mocks.readConfigFileSnapshot.mockClear();
|
||||
mocks.writeConfigFile.mockClear();
|
||||
});
|
||||
|
||||
it("returns config when snapshot is valid", async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue