Skip to content

Commit 4c7c6b1

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
test: additional assert for hereNow response parsing test
1 parent 89d6ba2 commit 4c7c6b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/endpoints/presence.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ describe('presence endpoints', () => {
601601
})
602602
.reply(
603603
200,
604-
' {"status": 200, "message": "OK", "payload": {"channels": {"ch1": {"uuids": ["a581c974-e2f9-4088-9cc8-9632708e012d"], "occupancy": 1}}, "total_channels": 1, "total_occupancy": 1}, "service": "Presence"}',
604+
' {"status": 200, "message": "OK", "payload": {"channels": {"ch1": {"uuids": ["a581c974-e2f9-4088-9cc8-9632708e012d"], "occupancy": 1}}, "total_channels": 3, "total_occupancy": 7}, "service": "Presence"}',
605605
{ 'content-type': 'text/javascript' },
606606
);
607607

@@ -621,6 +621,8 @@ describe('presence endpoints', () => {
621621
]
622622
}
623623
});
624+
assert.equal(response.totalChannels, 3);
625+
assert.equal(response.totalOccupancy, 7);
624626
assert.equal(scope.isDone(), true);
625627
done();
626628
} catch (error) {

0 commit comments

Comments
 (0)