fix: typo in default error page "occured" -> "occurred" (#879)
This commit is contained in:
@@ -42,7 +42,7 @@ export default function DefaultErrorPage(props: ErrorPageProps) {
|
|||||||
padding: 16,
|
padding: 16,
|
||||||
fontFamily: "sans-serif",
|
fontFamily: "sans-serif",
|
||||||
},
|
},
|
||||||
}, "An error occured during route handling or page rendering."),
|
}, "An error occurred during route handling or page rendering."),
|
||||||
message && h("pre", {
|
message && h("pre", {
|
||||||
style: {
|
style: {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ Deno.test("error page rendered", async () => {
|
|||||||
const body = await resp.text();
|
const body = await resp.text();
|
||||||
assertStringIncludes(
|
assertStringIncludes(
|
||||||
body,
|
body,
|
||||||
`An error occured during route handling or page rendering.`,
|
`An error occurred during route handling or page rendering.`,
|
||||||
);
|
);
|
||||||
assertStringIncludes(body, `Error: boom!`);
|
assertStringIncludes(body, `Error: boom!`);
|
||||||
assertStringIncludes(body, `at render`);
|
assertStringIncludes(body, `at render`);
|
||||||
|
|||||||
Reference in New Issue
Block a user