diff --git a/test/async.test.js b/test/async.test.js index a782c586..7c01d357 100644 --- a/test/async.test.js +++ b/test/async.test.js @@ -57,8 +57,8 @@ for (let type of ['node', 'browser']) { nanoidSuite('avoids pool pollution, infinite loop', async () => { await nanoid(2.1) - const second = await nanoid() - const third = await nanoid() + let second = await nanoid() + let third = await nanoid() not.equal(second, third) }) diff --git a/test/index.test.js b/test/index.test.js index e5d9fd8d..3dfd563a 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -36,8 +36,8 @@ for (let type of ['node', 'browser']) { test(`${type} / nanoid / avoids pool pollution, infinite loop`, () => { nanoid(2.1) - const second = nanoid() - const third = nanoid() + let second = nanoid() + let third = nanoid() not.equal(second, third) }) diff --git a/test/non-secure.test.js b/test/non-secure.test.js index fbff2a12..f952da64 100644 --- a/test/non-secure.test.js +++ b/test/non-secure.test.js @@ -58,8 +58,8 @@ test('nanoid / has flat distribution', () => { test('nanoid / avoids pool pollution, infinite loop', () => { nanoid(2.1) - const second = nanoid() - const third = nanoid() + let second = nanoid() + let third = nanoid() not.equal(second, third) }) @@ -99,8 +99,8 @@ test('customAlphabet / avoids pool pollution, infinite loop', () => { let ALPHABET = 'abcdefghijklmnopqrstuvwxyz' let nanoid2 = customAlphabet(ALPHABET) nanoid2(2.1) - const second = nanoid2() - const third = nanoid2() + let second = nanoid2() + let third = nanoid2() not.equal(second, third) }) diff --git a/test/react-native-polyfill.test.js b/test/react-native-polyfill.test.js index 3675efcb..d96e2168 100644 --- a/test/react-native-polyfill.test.js +++ b/test/react-native-polyfill.test.js @@ -30,8 +30,8 @@ test('works with polyfill', () => { test('nanoid / avoids pool pollution, infinite loop', () => { let { nanoid } = require('../index.browser') nanoid(2.1) - const second = nanoid() - const third = nanoid() + let second = nanoid() + let third = nanoid() not.equal(second, third) })