Skip to content

Commit

Permalink
Fixed a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed May 14, 2020
1 parent c456a0e commit 1835a7e
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ describe( 'dev-env/release-tools/tasks', () => {
warnOnUnregistered: false
} );

mockery.registerMock( '@octokit/rest', function GitHubApi( options ) {
octokitOptions = options;

this.authenticate = stubs.authenticate;
this.repos = {
createRelease: stubs.createRelease
};
mockery.registerMock( '@octokit/rest', {
Octokit: function GitHubApi( options ) {
octokitOptions = options;

this.authenticate = stubs.authenticate;
this.repos = {
createRelease: stubs.createRelease
};
}
} );

createGithubRelease = require( '../../../lib/release-tools/utils/creategithubrelease' );
Expand Down

0 comments on commit 1835a7e

Please sign in to comment.