mirror of https://github.com/node-red/node-red.git
Update `comms` unit tests
parent
662f8c986a
commit
c6135cebcd
|
|
@ -220,7 +220,13 @@ describe("runtime-api/comms", function() {
|
|||
return comms.subscribe({client: clientConnection, topic: "status/#"}).then(function() {
|
||||
messages.should.have.length(1);
|
||||
messages[0].should.have.property("topic","status/node1234");
|
||||
messages[0].should.have.property("data",{text:"hello", fill: undefined, shape: undefined});
|
||||
messages[0].should.have.property("data", {
|
||||
text: "hello",
|
||||
fill: undefined,
|
||||
shape: undefined,
|
||||
duration: undefined,
|
||||
ephemeral: undefined
|
||||
});
|
||||
done();
|
||||
});
|
||||
}).catch(done);
|
||||
|
|
|
|||
Loading…
Reference in New Issue