Remove deprecated Buffer constructor usage

Fixes #1709
This commit is contained in:
Nick O'Leary
2018-10-24 13:45:34 +01:00
parent 7dcca2c907
commit e4d518749f
13 changed files with 26 additions and 26 deletions

View File

@@ -390,7 +390,7 @@ describe('HTTP Request Node', function() {
done(err);
}
});
n1.receive({payload:new Buffer('hello'), headers: { 'content-type': 'text/plain'}});
n1.receive({payload:Buffer.from('hello'), headers: { 'content-type': 'text/plain'}});
});
});

View File

@@ -454,7 +454,7 @@ describe('websocket Node', function() {
});
getSocket("n1").on("open", function() {
helper.getNode("n3").send({
payload: new Buffer("hello")
payload: Buffer.from("hello")
});
});
});