Skip to content

Commit

Permalink
[Tests] node 22+ removes crypto.createCipher
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 22, 2024
1 parent 6fad824 commit b2cadea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ test('getCiphers', function (t) {
t.ok(bcCyphers.length, 'get ciphers returns an array');
});

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

0 comments on commit b2cadea

Please sign in to comment.