test: pass utf8 as 2nd argument when reading private key from file using `fs.readFileSync`

This commit is contained in:
Gregor 2019-01-10 10:22:43 -08:00 committed by Gregor Martynus
parent 222256ab92
commit 301fc4775a
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ describe('private-key', () => {
it('should read the file at given filepath', () => {
findPrivateKey(undefined)
expect(fs.readFileSync).toHaveBeenCalledWith(keyfilePath)
expect(fs.readFileSync).toHaveBeenCalledWith(keyfilePath, 'utf8')
})
it('should return the key', () => {