From 99e959b0905f80af2147b00314346a82639937a8 Mon Sep 17 00:00:00 2001 From: Max Holman Date: Mon, 7 Jan 2019 15:48:23 +0800 Subject: [PATCH] reflect deprecated method name in sinon (https://github.com/sinonjs/sinon/pull/1630) --- test/index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/index.js b/test/index.js index aceb703..24bf586 100644 --- a/test/index.js +++ b/test/index.js @@ -34,7 +34,7 @@ describe('Debug Module', () => { }); it('is called with correct params (basic)', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; debug('testing'); @@ -42,7 +42,7 @@ describe('Debug Module', () => { }); it('calls functions correctly (single function)', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; debug(() => 'testing'); @@ -52,7 +52,7 @@ describe('Debug Module', () => { }); it('calls functions correctly (multiple arguments)', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; debug(1, 2, 3, 4, () => 5); @@ -62,7 +62,7 @@ describe('Debug Module', () => { it('passes correct arguments through (multiple data types)', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; debug(() => 'testing', {}, []); @@ -72,7 +72,7 @@ describe('Debug Module', () => { }); it('doesn\'t do anything at all when debug is turned off', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = false; debug(() => 'testing', {}, []); @@ -80,7 +80,7 @@ describe('Debug Module', () => { }); it('is called twice correctly', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; debug(() => 'testing', {}, []); @@ -89,7 +89,7 @@ describe('Debug Module', () => { }); it('returned undefined', () => { - mockDebugFunction.reset(); + mockDebugFunction.resetHistory(); mockDebugFunction.enabled = true; const result = debug(() => 'testing', {}, []);