test: cleanup sinon import
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 2 Oct 2023 16:41:46 +0000 (18:41 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 2 Oct 2023 16:41:46 +0000 (18:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
package.json
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs

index 81f7ce440a51f9c474921b3f8069a916c3834e4f..dafcf0aa1a0d9cff1e1d3be73e3ff056731e61e9 100644 (file)
@@ -35,7 +35,7 @@
     "prepublishOnly": "pnpm build:prod"
   },
   "ts-standard": {
-    "globals": ["describe", "it", "before", "after", "beforeEach", "afterEach"]
+    "globals": ["describe", "it", "after", "before", "afterEach", "beforeEach"]
   },
   "engines": {
     "node": ">=16.14.0",
index a8c4bdd5eaabf9f0845e82d00d9a1bd9c2c2caa1..25c262fde5ea946a1a1de8b2a18ca8417636a02d 100644 (file)
@@ -1,5 +1,4 @@
 import { expect } from 'expect'
-import { restore } from 'sinon'
 import { FixedThreadPool } from '../../../lib/index.js'
 import { WeightedRoundRobinWorkerChoiceStrategy } from '../../../lib/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.js'
 import { generateRandomInteger } from '../../test-utils.js'
@@ -16,10 +15,6 @@ describe('Weighted round robin strategy worker choice strategy test suite', () =
     )
   })
 
-  afterEach(() => {
-    restore()
-  })
-
   after(async () => {
     await pool.destroy()
   })