We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477aa63 commit 81d5ff7Copy full SHA for 81d5ff7
tests/testsuite/renderer.rs
@@ -262,3 +262,12 @@ fn legacy_relative_command_path() {
262
})
263
.check_file("book/output", "test");
264
}
265
+
266
+/// Render 404 defaults to standard content.
267
+#[test]
268
+fn render_404_default() {
269
+ BookTest::from_dir("build/basic_build").check_main_file("book/404.html", str![[r##"
270
+<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1>
271
+<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
272
+"##]]);
273
+}
0 commit comments