mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
parent
9eeafb8c15
commit
7c37f5d8b6
19 changed files with 101 additions and 116 deletions
|
|
@ -86,9 +86,7 @@ describe("recordSendBatch", () => {
|
|||
|
||||
it("serializes detail and encodes ok/error", async () => {
|
||||
const { db, rows } = createMockDB();
|
||||
await recordSendBatch(db, [
|
||||
record({ detail: { a: 1 }, ok: false, error: "x", status: 500 }),
|
||||
]);
|
||||
await recordSendBatch(db, [record({ detail: { a: 1 }, ok: false, error: "x", status: 500 })]);
|
||||
expect(rows[0].detail).toBe('{"a":1}');
|
||||
expect(rows[0].ok).toBe(0);
|
||||
expect(rows[0].status).toBe(500);
|
||||
|
|
@ -105,8 +103,6 @@ describe("recordSendBatch", () => {
|
|||
throw new Error("batch failed");
|
||||
},
|
||||
} as unknown as D1Database;
|
||||
await expect(
|
||||
recordSendBatch(db, [record()]),
|
||||
).resolves.toBeUndefined();
|
||||
await expect(recordSendBatch(db, [record()])).resolves.toBeUndefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue