otpus
Version:
General purpose cipher for Node & browser
16 lines (13 loc) • 401 B
JavaScript
import assert from 'assert/strict'
import { RAND } from '../src/index.js'
describe('RAND', function () {
describe('for number', function () {
const num = 16
it('should return Uint8Array', function () {
assert.ok(RAND(num) instanceof Uint8Array)
})
it('should return number-bytes size of Uint8Array', function () {
assert.ok(RAND(num).byteLength === num)
})
})
})