Skip to content

Commit 080b8a9

Browse files
SourceR85Steven John Lange
andauthored
(#8655) - remove deprecated usage
Co-authored-by: Steven John Lange <s.lange@hz-deutschland.de>
1 parent 0ef150f commit 080b8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ testUtils.generateReplicationId = pouchUtils.generateReplicationId;
259259
testUtils.makeBlob = function (data, type) {
260260
if (testUtils.isNode()) {
261261
// "global.Buffer" is to avoid Browserify pulling this in
262-
return new global.Buffer(data, 'binary');
262+
return global.Buffer.from(data, 'binary');
263263
} else {
264264
return pouchUtils.blob([data], {
265265
type: (type || 'text/plain')

0 commit comments

Comments
 (0)