Skip to content

Commit

Permalink
feature(package) sinon -> @cloudcmd/stub
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Nov 29, 2018
1 parent 79567ee commit 2c9b525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"node": ">=8"
},
"devDependencies": {
"@cloudcmd/stub": "^2.3.1",
"coveralls": "^3.0.0",
"eslint": "^5.0.0",
"nodemon": "^1.9.2",
"nyc": "^13.0.1",
"redrun": "^7.0.0",
"sinon": "^7.1.0",
"tape": "^4.5.1"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/success.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

const test = require('tape');
const success = require('../lib/success');
const sinon = require('sinon');
const stub = require('@cloudcmd/stub');

test('longrun: success: should set first argument null', (t) => {
const fn = sinon.stub();
const fn = stub();

success(fn, 'hello');
t.ok(fn.calledWith(null, 'hello'));
t.end();
});

test('longrun: success should use curry', (t) => {
const fn = sinon.stub();
const fn = stub();

t.equal(typeof success(fn), 'function', 'should return function');
t.end();
Expand Down

0 comments on commit 2c9b525

Please sign in to comment.