source: imaps-frontend/node_modules/uuid/dist/esm/test/rng.test.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 356 bytes
Line 
1import * as assert from 'assert';
2import test, { describe } from 'node:test';
3import rng from '../rng.js';
4describe('rng', () => {
5 test('Node.js RNG', () => {
6 const bytes = rng();
7 assert.equal(bytes.length, 16);
8 for (let i = 0; i < bytes.length; ++i) {
9 assert.equal(typeof bytes[i], 'number');
10 }
11 });
12});
Note: See TracBrowser for help on using the repository browser.