diff --git a/test/fixture/routes/raw.ts b/test/fixture/routes/raw.ts index f9ae0a8c5b..1a9fd878c8 100644 --- a/test/fixture/routes/raw.ts +++ b/test/fixture/routes/raw.ts @@ -6,7 +6,7 @@ import sqlts from "../files/sqlts.sql"; export default defineEventHandler(async () => { return { - sql, - sqlts, + sql: sql.trim(), + sqlts: sqlts.trim(), }; }); diff --git a/test/tests.ts b/test/tests.ts index 45c7a7607d..0e57111657 100644 --- a/test/tests.ts +++ b/test/tests.ts @@ -782,8 +782,8 @@ export function testNitro( it("raw imports", async () => { const { data } = await callHandler({ url: "/raw" }); expect(data).toMatchObject({ - sql: "--\n", - sqlts: "--\n", + sql: "--", + sqlts: "--", }); }); }