We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef150f commit 080b8a9Copy full SHA for 080b8a9
tests/integration/utils.js
@@ -259,7 +259,7 @@ testUtils.generateReplicationId = pouchUtils.generateReplicationId;
259
testUtils.makeBlob = function (data, type) {
260
if (testUtils.isNode()) {
261
// "global.Buffer" is to avoid Browserify pulling this in
262
- return new global.Buffer(data, 'binary');
+ return global.Buffer.from(data, 'binary');
263
} else {
264
return pouchUtils.blob([data], {
265
type: (type || 'text/plain')
0 commit comments