Skip to content

Commit

Permalink
Fix github test
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jun 21, 2022
1 parent e42f04a commit 1d1e662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ test('should create new release for unreleased tag', async t => {
});

test('should release to enterprise host', async t => {
const github = factory(GitHub, { options: { git, github: { tokenRef } } });
const options = { git, github: { tokenRef, pushRepo: 'git://github.example.org:user/repo' } };
const github = factory(GitHub, { options });
const exec = sinon.stub(github.shell, 'exec').callThrough();
exec.withArgs('git remote get-url origin').resolves(`https://github.example.org/user/repo`);
exec.withArgs('git config --get remote.origin.url').resolves(`https://github.example.org/user/repo`);
Expand Down

0 comments on commit 1d1e662

Please sign in to comment.