mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
@@ -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'}});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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")
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user