mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
test(exit) test/server -> server/exit.spec
This commit is contained in:
parent
f4a0624470
commit
2b9fca8485
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const test = require('tape');
|
||||
const exit = require('../../server/exit');
|
||||
const exit = require('./exit');
|
||||
const diff = require('sinon-called-with-diff');
|
||||
const sinon = diff(require('sinon'));
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ test('cloudcmd: exit: process.exit', (t) => {
|
|||
test('cloudcmd: exit: console.error', (t) => {
|
||||
const {exit:exitOriginal} = process;
|
||||
const {error} = console;
|
||||
|
||||
|
||||
console.error = sinon.stub();
|
||||
process.exit = sinon.stub();
|
||||
|
||||
|
|
@ -31,3 +31,4 @@ test('cloudcmd: exit: console.error', (t) => {
|
|||
|
||||
t.end();
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue