diff --git a/test/utils.js b/test/utils.js index aee3aa8698..ca8b22464a 100644 --- a/test/utils.js +++ b/test/utils.js @@ -102,8 +102,10 @@ describe('Utility Methods', () => { describe('UUID generation', () => { it('return unique random value every time', () => { - const uuid1 = utils.generateUUID(); - const uuid2 = utils.generateUUID(); + delete require.cache[require.resolve('../src/utils')]; + const { generateUUID } = require('../src/utils'); + const uuid1 = generateUUID(); + const uuid2 = generateUUID(); assert.notEqual(uuid1, uuid2, 'matches'); }); });