aboutsummaryrefslogtreecommitdiff
path: root/src/generator/html.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-09 18:23:20 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-09 18:23:20 +0100
commit67a5f942d573b94ce9b20d19088be075ad433d78 (patch)
treef15613c0ccaa1d48b5091c375980991f1891cdeb /src/generator/html.rs
parent98d323f5e86df5eab2218ae879da68ae3cb5230a (diff)
Cleanup test directories
Diffstat (limited to 'src/generator/html.rs')
-rw-r--r--src/generator/html.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/generator/html.rs b/src/generator/html.rs
index 7895a83..7af4c73 100644
--- a/src/generator/html.rs
+++ b/src/generator/html.rs
@@ -70,6 +70,7 @@ mod tests {
assert_file_contains(&output_dir.join("index.html"), "<p>Contextualization</p>");
assert_file_contains(&output_dir.join("index.html"), "<p>Contexternalization</p>");
+ cleanup_test_dir(&test_dir);
}
#[test]
@@ -114,6 +115,7 @@ mod tests {
<p>Recontexternalization</p>
",
);
+ cleanup_test_dir(&test_dir);
}
#[test]
@@ -139,6 +141,7 @@ mod tests {
let result = generate(&static_dir, &template_dir, &output_dir, &context);
assert!(result.is_err());
+ cleanup_test_dir(&test_dir);
}
#[test]
@@ -174,5 +177,6 @@ mod tests {
let result = generate(&static_dir, &template_dir, &output_dir, &context);
assert!(result.is_err());
+ cleanup_test_dir(&test_dir);
}
}