mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:30:43 +00:00
test: clarify plugin sdk assertions
This commit is contained in:
@@ -242,7 +242,8 @@ describe("plugin-sdk facade runtime", () => {
|
||||
|
||||
expect(loaded.marker).toBe("post-load-ok");
|
||||
expect(reentryMarkers.length).toBeGreaterThan(0);
|
||||
expect(reentryMarkers.every((marker) => marker === "post-load-ok")).toBe(true);
|
||||
const unexpectedReentryMarkers = reentryMarkers.filter((marker) => marker !== "post-load-ok");
|
||||
expect(unexpectedReentryMarkers).toEqual([]);
|
||||
expect(listImportedBundledPluginFacadeIds()).toEqual(["demo"]);
|
||||
expect(loader).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
@@ -270,6 +270,9 @@ describe("resolveClaudeThinkingProfile", () => {
|
||||
levels: expect.arrayContaining([{ id: "adaptive" }]),
|
||||
defaultLevel: "adaptive",
|
||||
});
|
||||
expect(profile.levels.some((level) => level.id === "xhigh" || level.id === "max")).toBe(false);
|
||||
const fixedBudgetLevels = profile.levels.filter(
|
||||
(level) => level.id === "xhigh" || level.id === "max",
|
||||
);
|
||||
expect(fixedBudgetLevels).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user