mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-14 19:40:40 +00:00
Tests: fix synthetic schema lookup typing
This commit is contained in:
@@ -244,7 +244,7 @@ describe("config schema", () => {
|
||||
});
|
||||
|
||||
it("uses the indexed tuple item schema for positional array lookups", () => {
|
||||
const tupleSchema: Parameters<typeof lookupConfigSchema>[0] = {
|
||||
const tupleSchema = {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -257,7 +257,7 @@ describe("config schema", () => {
|
||||
uiHints: {},
|
||||
version: "test",
|
||||
generatedAt: "test",
|
||||
};
|
||||
} as unknown as Parameters<typeof lookupConfigSchema>[0];
|
||||
|
||||
const lookup = lookupConfigSchema(tupleSchema, "pair.1");
|
||||
expect(lookup?.path).toBe("pair.1");
|
||||
|
||||
Reference in New Issue
Block a user