Fix stub in tests.

This commit is contained in:
Chris Gavin 2021-06-07 07:14:44 +01:00
parent 41dff7fce3
commit f8c65b775d
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
3 changed files with 9 additions and 3 deletions

View file

@ -11,10 +11,13 @@ const pkg = require("../package.json");
setupTests(test);
let pluginStub: sinon.SinonStub;
let githubStub: sinon.SinonStub;
test.beforeEach(() => {
githubStub = sinon.stub(githubUtils, "GitHub");
pluginStub = sinon.stub(githubUtils.GitHub, "plugin");
githubStub = sinon.stub();
pluginStub.returns(githubStub);
initializeEnvironment(Mode.actions, pkg.version);
});