From 7454b3ffc47adcc7db2cf840e2e255ac059692ce Mon Sep 17 00:00:00 2001 From: Dmitry Menshikov Date: Thu, 4 Oct 2018 10:54:09 +0300 Subject: [PATCH] Refactoring of test. Sinon removed support of spy.reset and suggested to use spy.resetHistory instead --- tests/Unit/FramesMonitor/_onStdoutChunk.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/FramesMonitor/_onStdoutChunk.test.js b/tests/Unit/FramesMonitor/_onStdoutChunk.test.js index a7e9f48..40db574 100644 --- a/tests/Unit/FramesMonitor/_onStdoutChunk.test.js +++ b/tests/Unit/FramesMonitor/_onStdoutChunk.test.js @@ -32,7 +32,7 @@ describe('FramesMonitor::_onStdoutChunk', () => { }); afterEach(() => { - spyOnCompleteFrame.reset(); + spyOnCompleteFrame.resetHistory(); stubRunShowFramesProcess.restore(); stubHandleProcessingError.restore(); spyFrameToJson.restore();