forked from mirrors/probot
test: pass utf8 as 2nd argument when reading private key from file using `fs.readFileSync`
This commit is contained in:
parent
222256ab92
commit
301fc4775a
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue