Skip to content

Commit 31acb81

Browse files
committed
tests: remove deprecated APIs from tests
1 parent b9c4a15 commit 31acb81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"eslint-config-standard": "12.0.0",
2424
"eslint-plugin-import": "2.18.0",
2525
"eslint-plugin-markdown": "1.0.0",
26-
"eslint-plugin-node": "7.0.1",
26+
"eslint-plugin-node": "8.0.1",
2727
"eslint-plugin-promise": "4.2.1",
2828
"eslint-plugin-standard": "4.0.0",
2929
"istanbul": "0.4.5",

test/compression.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe('compression()', function () {
174174
pressure()
175175
})
176176

177-
crypto.pseudoRandomBytes(1024 * 128, function (err, chunk) {
177+
crypto.randomBytes(1024 * 128, function (err, chunk) {
178178
if (err) return done(err)
179179
buf = chunk
180180
pressure()
@@ -231,7 +231,7 @@ describe('compression()', function () {
231231
pressure()
232232
})
233233

234-
crypto.pseudoRandomBytes(1024 * 128, function (err, chunk) {
234+
crypto.randomBytes(1024 * 128, function (err, chunk) {
235235
if (err) return done(err)
236236
buf = chunk
237237
pressure()

0 commit comments

Comments
 (0)