mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 19:10:21 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import type { ClawdbotConfig } from "../config/config.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import { applyExclusiveSlotSelection } from "./slots.js";
|
||||
|
||||
describe("applyExclusiveSlotSelection", () => {
|
||||
it("selects the slot and disables other entries for the same kind", () => {
|
||||
const config: ClawdbotConfig = {
|
||||
const config: MoltbotConfig = {
|
||||
plugins: {
|
||||
slots: { memory: "memory-core" },
|
||||
entries: {
|
||||
@@ -37,7 +37,7 @@ describe("applyExclusiveSlotSelection", () => {
|
||||
});
|
||||
|
||||
it("does nothing when the slot already matches", () => {
|
||||
const config: ClawdbotConfig = {
|
||||
const config: MoltbotConfig = {
|
||||
plugins: {
|
||||
slots: { memory: "memory" },
|
||||
entries: {
|
||||
@@ -59,7 +59,7 @@ describe("applyExclusiveSlotSelection", () => {
|
||||
});
|
||||
|
||||
it("warns when the slot falls back to a default", () => {
|
||||
const config: ClawdbotConfig = {
|
||||
const config: MoltbotConfig = {
|
||||
plugins: {
|
||||
entries: {
|
||||
memory: { enabled: true },
|
||||
@@ -81,7 +81,7 @@ describe("applyExclusiveSlotSelection", () => {
|
||||
});
|
||||
|
||||
it("skips changes when no exclusive slot applies", () => {
|
||||
const config: ClawdbotConfig = {};
|
||||
const config: MoltbotConfig = {};
|
||||
const result = applyExclusiveSlotSelection({
|
||||
config,
|
||||
selectedId: "custom",
|
||||
|
||||
Reference in New Issue
Block a user