From: Jérôme Benoit Date: Fri, 25 Aug 2023 10:51:56 +0000 (+0200) Subject: refactor: cleanup circular array UT X-Git-Tag: v2.6.35~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4b280f8150c7daa56c62731eb9441b888a45dad4;p=poolifier.git refactor: cleanup circular array UT Signed-off-by: Jérôme Benoit --- diff --git a/tests/circular-array.test.js b/tests/circular-array.test.js index 7e3e96cb..fa87a310 100644 --- a/tests/circular-array.test.js +++ b/tests/circular-array.test.js @@ -1,5 +1,8 @@ const { expect } = require('expect') -const { CircularArray } = require('../lib/circular-array') +const { + CircularArray, + DEFAULT_CIRCULAR_ARRAY_SIZE +} = require('../lib/circular-array') describe('Circular array test suite', () => { it('Verify that circular array can be instantiated', () => { @@ -9,7 +12,7 @@ describe('Circular array test suite', () => { it('Verify circular array default size at instance creation', () => { const circularArray = new CircularArray() - expect(circularArray.size).toBe(1024) + expect(circularArray.size).toBe(DEFAULT_CIRCULAR_ARRAY_SIZE) }) it('Verify that circular array size can be set at instance creation', () => {