Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Add target_commitish to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fleskesvor committed Dec 29, 2019
1 parent 2b67105 commit 1a72e23
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/create-release.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('Create Release', () => {
owner: 'owner',
repo: 'repo'
};
context.sha = 'sha';

const github = {
repos: {
Expand Down Expand Up @@ -50,7 +51,8 @@ describe('Create Release', () => {
name: 'myRelease',
body: 'myBody',
draft: false,
prerelease: false
prerelease: false,
target_commitish: 'sha'
});
});

Expand All @@ -72,7 +74,8 @@ describe('Create Release', () => {
name: 'myRelease',
body: 'myBody',
draft: true,
prerelease: false
prerelease: false,
target_commitish: 'sha'
});
});

Expand All @@ -94,7 +97,8 @@ describe('Create Release', () => {
name: 'myRelease',
body: 'myBody',
draft: false,
prerelease: true
prerelease: true,
target_commitish: 'sha'
});
});

Expand All @@ -116,7 +120,8 @@ describe('Create Release', () => {
name: 'myRelease',
body: '',
draft: false,
prerelease: false
prerelease: false,
target_commitish: 'sha'
});
});

Expand Down

0 comments on commit 1a72e23

Please sign in to comment.