Skip to content

Commit 61ea78c

Browse files
committed
test: fix line-endings for builtin config saving test
1 parent 03f7fdd commit 61ea78c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lib/utils/reify-finish.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ t.test('should write if everything above passes', async t => {
7474
inventory: new Map([['node_modules/npm', {path}]]),
7575
},
7676
})
77-
t.matchSnapshot(fs.readFileSync(`${path}/npmrc`, 'utf8'), 'written config')
77+
// windowwwwwwssss!!!!!
78+
const data = fs.readFileSync(`${path}/npmrc`, 'utf8').replace(/\r/g, '\n')
79+
t.matchSnapshot(data, 'written config')
7880
})

0 commit comments

Comments
 (0)