feature(cloudcmd) sinon, sinon-called-with-diff -> @cloudcmd/stub

This commit is contained in:
coderaiser 2018-11-23 11:42:15 +02:00
parent 2f56d2b5ca
commit 497f7bcd40
24 changed files with 182 additions and 222 deletions

View file

@ -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 btoa = require('../../common/btoa');
@ -10,7 +9,7 @@ test('btoa: browser', (t) => {
const btoaOriginal = global.btoa;
const str = 'hello';
global.btoa = sinon.stub();
global.btoa = stub();
btoa(str);