mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 06:57:26 +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", () => {
|
it("uses the indexed tuple item schema for positional array lookups", () => {
|
||||||
const tupleSchema: Parameters<typeof lookupConfigSchema>[0] = {
|
const tupleSchema = {
|
||||||
schema: {
|
schema: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
@@ -257,7 +257,7 @@ describe("config schema", () => {
|
|||||||
uiHints: {},
|
uiHints: {},
|
||||||
version: "test",
|
version: "test",
|
||||||
generatedAt: "test",
|
generatedAt: "test",
|
||||||
};
|
} as unknown as Parameters<typeof lookupConfigSchema>[0];
|
||||||
|
|
||||||
const lookup = lookupConfigSchema(tupleSchema, "pair.1");
|
const lookup = lookupConfigSchema(tupleSchema, "pair.1");
|
||||||
expect(lookup?.path).toBe("pair.1");
|
expect(lookup?.path).toBe("pair.1");
|
||||||
|
|||||||
Reference in New Issue
Block a user