Skip to content

Commit

Permalink
Fix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed May 14, 2024
1 parent 0ca6fe9 commit 51bb64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codemods/transformTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export const runTransformTest = (
`${testName}.output${extension}`,
)

const inputFileContent = fs.readFileSync(inputPath, 'utf8')
const inputFileContent = fs.readFileSync(inputPath, 'utf8').trim().replace('\r\n', '\n')

const expectedOutput = fs.readFileSync(outputPath, 'utf8')
const expectedOutput = fs.readFileSync(outputPath, 'utf8').trim().replace('\r\n', '\n')

describe(`${testName}${extension}`, () => {
it('transforms correctly', () => {
Expand Down

0 comments on commit 51bb64a

Please sign in to comment.