source: imaps-frontend/node_modules/uuid/dist/cjs/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: 496 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const assert = require("assert");
4const node_test_1 = require("node:test");
5const rng_js_1 = require("../rng.js");
6(0, node_test_1.describe)('rng', () => {
7 (0, node_test_1.default)('Node.js RNG', () => {
8 const bytes = (0, rng_js_1.default)();
9 assert.equal(bytes.length, 16);
10 for (let i = 0; i < bytes.length; ++i) {
11 assert.equal(typeof bytes[i], 'number');
12 }
13 });
14});
Note: See TracBrowser for help on using the repository browser.