Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reorder test mock inputs
  • Loading branch information
Jacob Bolda committed Feb 6, 2020
1 parent c06331b commit 6d0973e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/create-release.test.js
Expand Up @@ -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.');

Expand Down

0 comments on commit 6d0973e

Please sign in to comment.