mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Move msg pack node to more supported lib msgpack-lite
This commit is contained in:
@@ -66,6 +66,7 @@ describe('msgpack node', function() {
|
||||
});
|
||||
|
||||
it('should error if the buffer fails to decode', function(done) {
|
||||
buf[0] = 0x87;
|
||||
var flow = [{"id":"n1", "type":"msgpack", wires:[["n2"]] },
|
||||
{id:"n2", type:"helper"} ];
|
||||
helper.load(testNode, flow, function() {
|
||||
@@ -77,7 +78,7 @@ describe('msgpack node', function() {
|
||||
setTimeout(function() {
|
||||
done();
|
||||
}, 25);
|
||||
n1.emit("input", {payload:Buffer("12345")});
|
||||
n1.emit("input", {payload:buf});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user