Skip to content

Commit 7a9191f

Browse files
author
whyboris
committed
restore method from stub to original
1 parent 4f80e16 commit 7a9191f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/cli-tests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ describe('Cli', function() {
1313
Cli.getInput('file', ['lol', 'foo'], 'ignore', 'callback');
1414
assert(spy.calledOnce);
1515
assert(spy.calledWith('lol', 'callback'));
16-
spy.restore()
16+
spy.restore();
1717
});
1818

1919
it('should readStdin when inputType is `stdin`', function() {
2020
let spy = sinon.stub(Utils, 'readStdin');
2121
Cli.getInput('stdin', ['lol'], 'ignore', 'callback');
2222
assert(spy.calledOnce);
2323
assert(spy.calledWith('callback'));
24+
spy.restore();
2425
});
2526

2627
it('should _runGitDiff by default', function() {
@@ -36,6 +37,7 @@ describe('Cli', function() {
3637
let spy = sinon.stub(Utils, 'writeFile');
3738
Cli.preview('a', 'b');
3839
assert(spy.calledOnce);
40+
spy.restore();
3941
});
4042
});
4143

0 commit comments

Comments
 (0)