UNPKG

node-simple-ipc

Version:

A Node.Js module for local Inter Process Communication

14 lines 504 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const unique_id_1 = require("./unique-id"); describe('uniqueId()', function () { test('compare next id with previous id 10 times in a row.', () => { let prev = (0, unique_id_1.uniqueId)(); for (let i = 0; i < 10; i++) { const next = (0, unique_id_1.uniqueId)(); expect(next).not.toEqual(prev); prev = next; } }); }); //# sourceMappingURL=unique-id.spec.js.map