Update `comms` unit tests

pull/5331/head
GogoVega 2025-10-27 15:06:57 +01:00
parent 662f8c986a
commit c6135cebcd
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
1 changed files with 7 additions and 1 deletions

View File

@ -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);