From: Jérôme Benoit Date: Mon, 2 Oct 2023 16:41:46 +0000 (+0200) Subject: test: cleanup sinon import X-Git-Tag: v2.7.5~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cd424e3162f5ae6be04dc156cdc8562dae16c33f;p=poolifier.git test: cleanup sinon import Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index 81f7ce44..dafcf0aa 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs b/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs index a8c4bdd5..25c262fd 100644 --- a/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs +++ b/tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs @@ -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() })