Skip to content

Commit

Permalink
feature(package) sinon, sinon-called-with-diff -> @cloudcmd/stub
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Nov 28, 2018
1 parent a98ee3b commit 8cdde79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -34,6 +34,7 @@
},
"homepage": "https://github.com/coderaiser/for-each-key",
"devDependencies": {
"@cloudcmd/stub": "^2.2.0",
"babel-cli": "^6.1.1",
"babel-loader": "^7.0.0",
"babel-plugin-transform-object-entries": "^1.0.0",
Expand All @@ -44,8 +45,6 @@
"nyc": "^11.0.2",
"redrun": "^6.0.0",
"rimraf": "^2.4.3",
"sinon": "^6.0.0",
"sinon-called-with-diff": "^2.0.0",
"tape": "^4.2.0"
}
}
9 changes: 4 additions & 5 deletions test/for-each-key.js
@@ -1,8 +1,7 @@
'use strict';

const test = require('tape');
const diff = require('sinon-called-with-diff');
const sinon = diff(require('sinon'));
const stub = require('@cloudcmd/stub');

const forEachKey = require('../lib/for-each-key');

Expand All @@ -11,7 +10,7 @@ test('forEachKey: on property', (t) => {
a: 'hello',
};

const fn = sinon.stub();
const fn = stub();

forEachKey(fn, obj);

Expand All @@ -25,7 +24,7 @@ test('forEachKey: a couple properties', (t) => {
b: 'world',
};

const fn = sinon.stub();
const fn = stub();

forEachKey(fn, obj);

Expand All @@ -40,7 +39,7 @@ test('forEachKey: count', (t) => {
c: 'some',
};

const fn = sinon.stub();
const fn = stub();

forEachKey(fn, obj);

Expand Down

0 comments on commit 8cdde79

Please sign in to comment.