reorder test mock inputs

This commit is contained in:
Jacob Bolda 2020-02-05 22:47:13 -06:00
parent c06331b12c
commit 6d0973ee39
No known key found for this signature in database
GPG Key ID: 22CE5B1A2BD487F7

View File

@ -127,9 +127,10 @@ describe('Create Release', () => {
.fn()
.mockReturnValueOnce('refs/tags/v1.0.0')
.mockReturnValueOnce('myRelease')
.mockReturnValueOnce('notes.md')
.mockReturnValueOnce('') // <-- The default value for body in action.yml
.mockReturnValueOnce('false')
.mockReturnValueOnce('false');
.mockReturnValueOnce('false')
.mockReturnValueOnce('notes.md');
fs.readFileSync = jest.fn().mockReturnValueOnce('# this is a release\nThe markdown is strong in this one.');