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

@ -2,12 +2,11 @@
const test = require('tape');
const mockRequire = require('mock-require');
const diff = require('sinon-called-with-diff');
const sinon = diff(require('sinon'));
const stub = require('@cloudcmd/stub');
test('cloudcmd: client: polyfill: scrollIntoViewIfNeaded', (t) => {
const {DOM} = global;
const scroll = sinon.stub();
const scroll = stub();
const el = {};
global.DOM = {};