style: applied biome formatting to merged pull request sources
This commit is contained in:
@@ -22,11 +22,7 @@ function createApi(): CustomCommandAPI {
|
||||
killed: false,
|
||||
}),
|
||||
typebox: {} as unknown as typeof TypeBox,
|
||||
arktype: Object.assign(
|
||||
Function.prototype.bind.call(type, undefined) as typeof type,
|
||||
type,
|
||||
{ type },
|
||||
),
|
||||
arktype: Object.assign(Function.prototype.bind.call(type, undefined) as typeof type, type, { type }),
|
||||
zod,
|
||||
pi: piCodingAgent,
|
||||
};
|
||||
|
||||
@@ -107,10 +107,7 @@ describe("pi.typebox compatibility shim", () => {
|
||||
});
|
||||
|
||||
it("applies schema-valued additionalProperties only to undeclared raw-object keys", () => {
|
||||
const schema = Type.Object(
|
||||
{ known: { type: "number" } },
|
||||
{ additionalProperties: { type: "string" } },
|
||||
);
|
||||
const schema = Type.Object({ known: { type: "number" } }, { additionalProperties: { type: "string" } });
|
||||
|
||||
expect(schema.safeParse({ known: 1, extra: "ok" }).success).toBe(true);
|
||||
expect(schema.safeParse({ known: "bad", extra: "ok" }).success).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user