[TEM #2] - Add sad path test

pull/4/head
sgoudham 2 years ago
parent 050bd07ed5
commit 7951c02445
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -285,4 +285,14 @@ mod lib_tests {
assert_eq!(actual_chapter_content, end_chapter_content); assert_eq!(actual_chapter_content, end_chapter_content);
} }
#[test]
fn test_sad_path_invalid_file() {
let start_chapter_content = "{{#template footer.md}}";
let actual_chapter_content =
replace_template(start_chapter_content, &TestFileReader::default(), "", "", 0);
assert_eq!(actual_chapter_content, start_chapter_content);
}
} }
Loading…
Cancel
Save