Skip to content

Commit a9d97c5

Browse files
committed
add basic test
1 parent 08523bf commit a9d97c5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/tests.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,21 @@ export function testNitro(
317317
}
318318
}
319319

320+
it("app config", async () => {
321+
const { data } = await callHandler({
322+
url: "/app-config",
323+
});
324+
expect(data).toMatchInlineSnapshot(`
325+
{
326+
"appConfig": {
327+
"app-config": true,
328+
"nitro-config": true,
329+
"server-config": true,
330+
},
331+
}
332+
`);
333+
});
334+
320335
if (ctx.nitro!.options.timing) {
321336
it("set server timing header", async () => {
322337
const { data, status, headers } = await callHandler({

0 commit comments

Comments
 (0)