From 95e59a99c09ba41240bede8463d81c406eb84d9c Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 22 Oct 2026 13:52:23 +0000 Subject: [PATCH] Format the quick export test (#8535) --- crates/engine/src/web_cmds/tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/web_cmds/tests.rs b/crates/engine/src/web_cmds/tests.rs index cf45dbb368..7eab0759da 100644 --- a/crates/engine/src/web_cmds/tests.rs +++ b/crates/engine/src/web_cmds/tests.rs @@ -474,7 +474,13 @@ fn quick_export_writes_the_format_its_path_names() { let dir = tmp("quick_ext"); let mut s = session(8); s.execute("file.export.exportPreferences", json!({"quickExportFormat": "png"})).unwrap(); - for (name, format, magic) in [("a.jpeg", "jpg", &b"\xFF\xD8\xFF"[..]), ("b.JPG", "jpg", b"\xFF\xD8\xFF"), ("c.gif", "gif", b"GIF8"), ("d.webp", "webp", b"RIFF"), ("e", "png", b"\x89PNG")] { + for (name, format, magic) in [ + ("a.jpeg", "jpg", &b"\xFF\xD8\xFF"[..]), + ("b.JPG", "jpg", b"\xFF\xD8\xFF"), + ("c.gif", "gif", b"GIF8"), + ("d.webp", "webp", b"RIFF"), + ("e", "png", b"\x89PNG"), + ] { let path = format!("{dir}/{name}"); let r = s.execute("file.export.quickExport", json!({"path": path})).unwrap(); assert_eq!(r["format"], json!(format), "{name}");