Skip to content

Commit

Permalink
test: skip missing getRandomValues on Node.js 19+
Browse files Browse the repository at this point in the history
Fixes #708
  • Loading branch information
LinusU committed Apr 12, 2023
1 parent 6eef540 commit cfa95d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/rng.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ describe('rng', () => {
}
});

test('Browser without crypto.getRandomValues()', () => {
// Newer versions of Node.js have a global crypto object
(global.crypto == null ? test : xtest)('Browser without crypto.getRandomValues()', function () {
assert.throws(() => {
rngBrowser();
});
Expand Down

0 comments on commit cfa95d1

Please sign in to comment.