Software /
code /
prosody
Comparison
spec/util_pubsub_spec.lua @ 11723:3ead0967e04d
util.pubsub: Signal that 'persistent-items' is unsupported when disabled
XEP-0060 says that this the way to indicate that 'persistent-items' is
unsupported, but doesn't explicitly say if it being disabled in the node
configuration also counts as unsupported.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 Jul 2021 19:53:21 +0200 |
parent | 11721:7a77f0c05382 |
child | 11767:5610f7c5b261 |
comparison
equal
deleted
inserted
replaced
11722:bc2d3f110a39 | 11723:3ead0967e04d |
---|---|
521 local ok = service:publish("node", true, "1", "item"); | 521 local ok = service:publish("node", true, "1", "item"); |
522 assert.truthy(ok); | 522 assert.truthy(ok); |
523 assert.spy(broadcaster).was_called(); | 523 assert.spy(broadcaster).was_called(); |
524 | 524 |
525 local ok, items = service:get_items("node", true); | 525 local ok, items = service:get_items("node", true); |
526 assert.truthy(ok); | 526 assert.not_truthy(ok); |
527 assert.same(items, {}); | 527 assert.equal(items, "persistent-items-unsupported"); |
528 end); | 528 end); |
529 | 529 |
530 end) | 530 end) |
531 end); | 531 end); |