Skip to content

Commit b2cadea

Browse files
committed
[Tests] node 22+ removes crypto.createCipher
1 parent 6fad824 commit b2cadea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/aes.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ test('getCiphers', function (t) {
3434
t.ok(bcCyphers.length, 'get ciphers returns an array');
3535
});
3636

37-
test('through crypto browserify works', function (t) {
37+
// eslint-disable-next-line global-require
38+
test('through crypto browserify works', { skip: !require('crypto').createCipher && 'node 22+ removes createCipher' }, function (t) {
3839
t.plan(2);
3940
var crypto = require('../'); // eslint-disable-line global-require
4041
var cipher = 'aes-128-ctr';

0 commit comments

Comments
 (0)