mirror of
https://github.com/penpot/penpot.git
synced 2026-10-28 21:40:34 +00:00
🐛 Fix export artifact expectations to include file size
The export flow now reports the artifact size, but the stale expectations dropped it and failed the frontend suite. Include the size in both assertions so they match the emitted message. AI-assisted-by: muse-spark-1.3-contributor
This commit is contained in:
parent
7b47524735
commit
1eb5bacc82
@ -125,7 +125,8 @@
|
||||
|
||||
(t/is (= {:file-id (:id target)
|
||||
:uri "http://assets/export"
|
||||
:filename "My file"}
|
||||
:filename "My file"
|
||||
:size 120}
|
||||
(last @seen)))))))))
|
||||
|
||||
(t/deftest ^:async a-failure-fails-only-its-own-file
|
||||
@ -165,7 +166,8 @@
|
||||
(t/testing "the failure does not touch the file that worked"
|
||||
(t/is (= {:file-id (:id one)
|
||||
:uri "http://assets/first"
|
||||
:filename "First"}
|
||||
:filename "First"
|
||||
:size nil}
|
||||
(first (filter #(and (= (:id one) (:file-id %))
|
||||
(:uri %))
|
||||
@seen)))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user