mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
Config: update raw plugin default expectation
This commit is contained in:
@@ -143,7 +143,7 @@ describe("validateConfigObjectRawWithPlugins channel metadata", () => {
|
||||
});
|
||||
|
||||
describe("validateConfigObjectRawWithPlugins plugin config defaults", () => {
|
||||
it("does not inject plugin AJV defaults in raw mode for required defaulted fields", async () => {
|
||||
it("still injects plugin AJV defaults in raw mode for required defaulted fields", async () => {
|
||||
setupPluginSchemaWithRequiredDefault();
|
||||
await loadValidationModule();
|
||||
|
||||
@@ -159,7 +159,9 @@ describe("validateConfigObjectRawWithPlugins plugin config defaults", () => {
|
||||
|
||||
expect(result.ok).toBe(true);
|
||||
if (result.ok) {
|
||||
expect(result.config.plugins?.entries?.opik?.config).toBeUndefined();
|
||||
expect(result.config.plugins?.entries?.opik?.config).toEqual({
|
||||
workspace: "default-workspace",
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user