Fix tests, broken in merge, New inputs have been added since

This commit is contained in:
Mike Coutermarsh 2020-07-01 07:48:58 -07:00
parent 91b6c4e353
commit 25a1bf7b59
No known key found for this signature in database
GPG Key ID: 45391430D7808AFE

View File

@ -135,6 +135,7 @@ describe('Create Release', () => {
.mockReturnValueOnce('') // <-- The default value for body in action.yml
.mockReturnValueOnce('false')
.mockReturnValueOnce('false')
.mockReturnValueOnce(null)
.mockReturnValueOnce('notes.md');
fs.readFileSync = jest.fn().mockReturnValueOnce('# this is a release\nThe markdown is strong in this one.');
@ -148,7 +149,8 @@ describe('Create Release', () => {
name: 'myRelease',
body: '# this is a release\nThe markdown is strong in this one.',
draft: false,
prerelease: false
prerelease: false,
target_commitish: 'sha'
});
});