feat(starter): add 404 page template (#1336)

This commit is contained in:
Marvin Hagemeister
2023-06-21 11:01:48 +02:00
committed by GitHub
parent 9b98e13e29
commit 87b15885aa
5 changed files with 74 additions and 19 deletions
+14 -2
View File
@@ -85,7 +85,13 @@ Deno.test({
"type": "directory",
"name": "routes",
"contents": [
{ "type": "file", "name": "[name].tsx" },
{
"type": "directory",
"name": "greet",
"contents": [
{ "type": "file", "name": "[name].tsx" },
],
},
{
"type": "directory",
"name": "api",
@@ -207,7 +213,13 @@ Deno.test({
"type": "directory",
"name": "routes",
"contents": [
{ "type": "file", "name": "[name].tsx" },
{
"type": "directory",
"name": "greet",
"contents": [
{ "type": "file", "name": "[name].tsx" },
],
},
{
"type": "directory",
"name": "api",
+1 -1
View File
@@ -45,7 +45,7 @@ Deno.test("/props/123 page prerender", async () => {
);
});
Deno.test("/[name] page prerender", async () => {
Deno.test("/greet/[name] page prerender", async () => {
const resp = await handler(new Request("https://fresh.deno.dev/bar"));
assert(resp);
assertEquals(resp.status, Status.OK);