mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-11 03:59:58 +08:00
style: auto-format with Biome
This commit is contained in:
@@ -22,16 +22,18 @@ function post(body: unknown): Request {
|
||||
}
|
||||
|
||||
describe("POST /api/log-save", () => {
|
||||
it.each(["drawio", "png", "svg", "xmlsvg"])(
|
||||
"logs a save in %s format",
|
||||
async (format) => {
|
||||
const res = await logSave(
|
||||
post({ filename: "diagram", format, sessionId: "s1" }),
|
||||
)
|
||||
expect(res.status).toBe(200)
|
||||
expect(await res.json()).toEqual({ success: true, logged: true })
|
||||
},
|
||||
)
|
||||
it.each([
|
||||
"drawio",
|
||||
"png",
|
||||
"svg",
|
||||
"xmlsvg",
|
||||
])("logs a save in %s format", async (format) => {
|
||||
const res = await logSave(
|
||||
post({ filename: "diagram", format, sessionId: "s1" }),
|
||||
)
|
||||
expect(res.status).toBe(200)
|
||||
expect(await res.json()).toEqual({ success: true, logged: true })
|
||||
})
|
||||
|
||||
it("rejects an unknown format", async () => {
|
||||
const res = await logSave(
|
||||
|
||||
Reference in New Issue
Block a user