From aeb25fdf3b8020cab3a93564c672a83940312f30 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 22 Oct 2023 18:30:17 +0100 Subject: [PATCH] Fix linting --- src/main.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.test.js b/src/main.test.js index 23030b2..ac09990 100644 --- a/src/main.test.js +++ b/src/main.test.js @@ -1,6 +1,6 @@ import test from 'ava' import keepFuncProps from 'keep-func-props' -import sinon from 'sinon' +import { spy } from 'sinon' // Dummy functors and functions used in tests const identityFunctor = (func) => @@ -36,7 +36,7 @@ test('should allow functors not taking a function as argument', (t) => { }) test('should pass functor arguments', (t) => { - const functor = sinon.spy(identityFunctor) + const functor = spy(identityFunctor) const functorCopy = keepFuncProps(functor) functorCopy(identityFunc, 'a', 'b') @@ -45,7 +45,7 @@ test('should pass functor arguments', (t) => { }) test('should pass functor context', (t) => { - const functor = sinon.spy(identityFunctor) + const functor = spy(identityFunctor) const functorCopy = keepFuncProps(functor) const context = {}