reorder test mock inputs
This commit is contained in:
@@ -127,9 +127,10 @@ describe('Create Release', () => {
|
|||||||
.fn()
|
.fn()
|
||||||
.mockReturnValueOnce('refs/tags/v1.0.0')
|
.mockReturnValueOnce('refs/tags/v1.0.0')
|
||||||
.mockReturnValueOnce('myRelease')
|
.mockReturnValueOnce('myRelease')
|
||||||
.mockReturnValueOnce('notes.md')
|
.mockReturnValueOnce('') // <-- The default value for body in action.yml
|
||||||
.mockReturnValueOnce('false')
|
.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.');
|
fs.readFileSync = jest.fn().mockReturnValueOnce('# this is a release\nThe markdown is strong in this one.');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user