Skip to content

Commit

Permalink
Chore: update sinon calls to deprecated API. (#8310)
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto authored and platinumazure committed Mar 23, 2017
1 parent 0491572 commit 614b62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/lib/config/config-initializer.js
Expand Up @@ -71,7 +71,7 @@ describe("configInitializer", () => {

beforeEach(() => {
npmInstallStub = sinon.stub(npmUtil, "installSyncSaveDev");
npmCheckStub = sinon.stub(npmUtil, "checkDevDeps", packages => packages.reduce((status, pkg) => {
npmCheckStub = sinon.stub(npmUtil, "checkDevDeps").callsFake(packages => packages.reduce((status, pkg) => {
status[pkg] = false;
return status;
}, {}));
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/util/path-util.js
Expand Up @@ -74,7 +74,7 @@ describe("pathUtil", () => {
const filePath = "file/path.js";
const basePath = "/absolute/file";

sinon.stub(process, "cwd", () => "/absolute/");
sinon.stub(process, "cwd").returns("/absolute/");
const result = pathUtil.getRelativePath(filePath, basePath);

assert.equal(result, "path.js");
Expand Down

0 comments on commit 614b62e

Please sign in to comment.