mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 20:53:02 +00:00
feature(cloudcmd) sinon, sinon-called-with-diff -> @cloudcmd/stub
This commit is contained in:
parent
2f56d2b5ca
commit
497f7bcd40
24 changed files with 182 additions and 222 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue