mirror of
https://github.com/actions/create-release.git
synced 2025-06-14 04:47:44 +00:00
reorder test mock inputs
This commit is contained in:
parent
c06331b12c
commit
6d0973ee39
@ -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.');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user