Update tests as well
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
@@ -60,9 +60,7 @@ describe('GitReleaseApiClient', () => {
|
||||
"replaceTempCommit": [Function],
|
||||
"updateRelease": [Function],
|
||||
},
|
||||
"promoteRc": Object {
|
||||
"promoteRelease": [Function],
|
||||
},
|
||||
"promoteRelease": [Function],
|
||||
"stats": Object {
|
||||
"getAllReleases": [Function],
|
||||
"getAllTags": [Function],
|
||||
|
||||
@@ -280,13 +280,11 @@ export const mockApiClient: GitReleaseApi = {
|
||||
})),
|
||||
},
|
||||
|
||||
promoteRc: {
|
||||
promoteRelease: jest.fn(async () => ({
|
||||
name: 'mock_release_name',
|
||||
tagName: 'mock_release_tag_name',
|
||||
htmlUrl: 'mock_release_html_url',
|
||||
})),
|
||||
},
|
||||
promoteRelease: jest.fn(async () => ({
|
||||
name: 'mock_release_name',
|
||||
tagName: 'mock_release_tag_name',
|
||||
htmlUrl: 'mock_release_html_url',
|
||||
})),
|
||||
|
||||
stats: {
|
||||
getAllTags: jest.fn(async () => [
|
||||
|
||||
Reference in New Issue
Block a user