diff --git a/src/test/index.js b/src/test/index.js index 935209a..833cd7d 100644 --- a/src/test/index.js +++ b/src/test/index.js @@ -3,12 +3,13 @@ var affaGuid = require('..') describe('affa guid', function () { var N = 1000 - var generated before(function () { assert(N >= 2, 'Tests need multiple UUIDs to be generated') }) + var generated + beforeEach(function () { generated = {} for (var i = 0; i < N; i++) { @@ -23,6 +24,6 @@ describe('affa guid', function () { }) it('Generates UUIDs that are unique each time', function () { - assert.strictEqual(Object.keys(generated).length, N) + assert(Object.keys(generated).length === N) }) })