Skip to content

Commit

Permalink
test: fix line-endings for builtin config saving test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Nov 17, 2020
1 parent 03f7fdd commit 61ea78c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib/utils/reify-finish.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,7 @@ t.test('should write if everything above passes', async t => {
inventory: new Map([['node_modules/npm', {path}]]),
},
})
t.matchSnapshot(fs.readFileSync(`${path}/npmrc`, 'utf8'), 'written config')
// windowwwwwwssss!!!!!
const data = fs.readFileSync(`${path}/npmrc`, 'utf8').replace(/\r/g, '\n')
t.matchSnapshot(data, 'written config')
})

0 comments on commit 61ea78c

Please sign in to comment.