Fix stub in tests.
This commit is contained in:
parent
41dff7fce3
commit
f8c65b775d
3 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue