mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 00:04:32 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -12,9 +12,7 @@ describe("config preservation on validation failure", () => {
|
||||
customUnknownField: { nested: "value" },
|
||||
});
|
||||
expect(res.ok).toBe(true);
|
||||
expect(
|
||||
(res as { config: Record<string, unknown> }).config.customUnknownField,
|
||||
).toEqual({
|
||||
expect((res as { config: Record<string, unknown> }).config.customUnknownField).toEqual({
|
||||
nested: "value",
|
||||
});
|
||||
});
|
||||
@@ -42,9 +40,7 @@ describe("config preservation on validation failure", () => {
|
||||
expect((snap.config as Record<string, unknown>).customData).toEqual({
|
||||
preserved: true,
|
||||
});
|
||||
expect(snap.config.channels?.whatsapp?.allowFrom).toEqual([
|
||||
"+15555550123",
|
||||
]);
|
||||
expect(snap.config.channels?.whatsapp?.allowFrom).toEqual(["+15555550123"]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user