mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +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,13 +2,12 @@
|
|||
|
||||
const test = require('tape');
|
||||
const info = require('./info');
|
||||
const sinon = require('sinon');
|
||||
const stub = require('@cloudcmd/stub');
|
||||
|
||||
test('cloudcmd: rest: info', (t) => {
|
||||
const {memoryUsage} = process;
|
||||
|
||||
const _memoryUsage = sinon
|
||||
.stub()
|
||||
const _memoryUsage = stub()
|
||||
.returns({});
|
||||
|
||||
process.memoryUsage = _memoryUsage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue