Skip to content

Commit

Permalink
Normalize line endings for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLeebo committed Mar 9, 2024
1 parent 2e30232 commit 48c6dac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/printSchema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ model Foo {
const source = await loadFixture('keystonejs-weird.prisma');
const expected = await loadFixture('keystonejs.prisma');
const schema = getSchema(source);
const result = printSchema(schema).replace(/\r\n/g, '\n');
expect(schema).not.toBeUndefined();
expect(printSchema(schema)).toEqual(expected);
expect(result).toEqual(expected.replace(/\r\n/g, '\n'));
});
});

0 comments on commit 48c6dac

Please sign in to comment.