mirror of
https://github.com/thegeneralist01/archivr
synced 2026-10-09 12:55:00 +02:00
test: cover terminal newline in text capture
This commit is contained in:
parent
771c64a811
commit
e371b37290
2 changed files with 2 additions and 2 deletions
|
|
@ -2907,7 +2907,7 @@ mod tests {
|
||||||
store_path: store_path.clone(),
|
store_path: store_path.clone(),
|
||||||
name: "test-archive".to_string(),
|
name: "test-archive".to_string(),
|
||||||
};
|
};
|
||||||
let body = " \n# Heading\n\nContent with a final newline\n\t ";
|
let body = " \n# Heading\n\nContent with a final newline\n\t \n";
|
||||||
|
|
||||||
perform_text_capture(
|
perform_text_capture(
|
||||||
&archive_paths,
|
&archive_paths,
|
||||||
|
|
|
||||||
|
|
@ -4246,7 +4246,7 @@ mod tests {
|
||||||
let dir = tempfile::tempdir().unwrap();
|
let dir = tempfile::tempdir().unwrap();
|
||||||
let (registry, archive_path, auth_path) = make_test_registry(&dir);
|
let (registry, archive_path, auth_path) = make_test_registry(&dir);
|
||||||
let session_cookie = make_test_session(&auth_path);
|
let session_cookie = make_test_session(&auth_path);
|
||||||
let text_body = " \n# Heading\n\nContent with a final newline\n\t ";
|
let text_body = " \n# Heading\n\nContent with a final newline\n\t \n";
|
||||||
let response = app(registry, auth_path)
|
let response = app(registry, auth_path)
|
||||||
.oneshot(
|
.oneshot(
|
||||||
Request::builder()
|
Request::builder()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue