mirror of
https://github.com/actions/create-release.git
synced 2025-06-14 04:47:44 +00:00
Fix tests, broken in merge, New inputs have been added since
This commit is contained in:
parent
91b6c4e353
commit
25a1bf7b59
@ -135,6 +135,7 @@ describe('Create Release', () => {
|
|||||||
.mockReturnValueOnce('') // <-- The default value for body in action.yml
|
.mockReturnValueOnce('') // <-- The default value for body in action.yml
|
||||||
.mockReturnValueOnce('false')
|
.mockReturnValueOnce('false')
|
||||||
.mockReturnValueOnce('false')
|
.mockReturnValueOnce('false')
|
||||||
|
.mockReturnValueOnce(null)
|
||||||
.mockReturnValueOnce('notes.md');
|
.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.');
|
||||||
@ -148,7 +149,8 @@ describe('Create Release', () => {
|
|||||||
name: 'myRelease',
|
name: 'myRelease',
|
||||||
body: '# this is a release\nThe markdown is strong in this one.',
|
body: '# this is a release\nThe markdown is strong in this one.',
|
||||||
draft: false,
|
draft: false,
|
||||||
prerelease: false
|
prerelease: false,
|
||||||
|
target_commitish: 'sha'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user