mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:24:32 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -3,17 +3,17 @@ import fs from "node:fs/promises";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { withTempHome } from "./test-helpers.js";
|
||||
import type { MoltbotConfig } from "./types.js";
|
||||
import type { OpenClawConfig } from "./types.js";
|
||||
|
||||
describe("config backup rotation", () => {
|
||||
it("keeps a 5-deep backup ring for config writes", async () => {
|
||||
await withTempHome(async () => {
|
||||
const { resolveConfigPath, writeConfigFile } = await import("./config.js");
|
||||
const configPath = resolveConfigPath();
|
||||
const buildConfig = (version: number): MoltbotConfig =>
|
||||
const buildConfig = (version: number): OpenClawConfig =>
|
||||
({
|
||||
agents: { list: [{ id: `v${version}` }] },
|
||||
}) as MoltbotConfig;
|
||||
}) as OpenClawConfig;
|
||||
|
||||
for (let version = 0; version <= 6; version += 1) {
|
||||
await writeConfigFile(buildConfig(version));
|
||||
|
||||
Reference in New Issue
Block a user