From 2c9b5252cd0b0d6fc80bc27449358fc06ca8c8c1 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 29 Nov 2018 16:39:57 +0200 Subject: [PATCH] feature(package) sinon -> @cloudcmd/stub --- package.json | 2 +- test/success.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d87f41b..74ba569 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/success.js b/test/success.js index 1877ac0..650438d 100644 --- a/test/success.js +++ b/test/success.js @@ -2,10 +2,10 @@ 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')); @@ -13,7 +13,7 @@ test('longrun: success: should set first argument null', (t) => { }); 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();