Skip to content

Commit

Permalink
test: fix windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 7, 2024
1 parent 03bdd2d commit 924eaa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/fixture/routes/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sqlts from "../files/sqlts.sql";

export default defineEventHandler(async () => {
return {
sql,
sqlts,
sql: sql.trim(),
sqlts: sqlts.trim(),
};
});
4 changes: 2 additions & 2 deletions test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "--",
});
});
}

0 comments on commit 924eaa5

Please sign in to comment.