summaryrefslogtreecommitdiff
path: root/tests/src/tests.rs
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-10-17 20:53:01 +0200
committerGitHub <noreply@github.com>2023-10-17 20:53:01 +0200
commitc0dbb900e859ea3a14632a59c76174fde8b50d51 (patch)
tree762a2b8eca63b4cafb51cd1cb110c1539d73df7f /tests/src/tests.rs
parent37a988af83e54c9351eadd2e7f8a1c32441fafb4 (diff)
Cached export for incremental (#2400)
Diffstat (limited to 'tests/src/tests.rs')
-rw-r--r--tests/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index bdbfd397..1aed32d7 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -437,7 +437,7 @@ fn test(
let svg = typst::export::svg_merged(&document.pages, Abs::pt(5.0));
fs::create_dir_all(svg_path.parent().unwrap()).unwrap();
- std::fs::write(svg_path, svg).unwrap();
+ std::fs::write(svg_path, svg.as_bytes()).unwrap();
if let Ok(ref_pixmap) = sk::Pixmap::load_png(ref_path) {
if canvas.width() != ref_pixmap.width()