aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-22 19:53:21 +0200
committerKim Alvefur <zash@zash.se>2021-07-22 19:53:21 +0200
commitdfed446a5adcb06b2e3af2181e57d17384cbbfaa (patch)
treef0ece126972003eb0bc7b4e96890fe345a8dd383 /spec
parent1603e003b144d3ee98d30444665161ebb658cf3f (diff)
downloadprosody-dfed446a5adcb06b2e3af2181e57d17384cbbfaa.tar.gz
prosody-dfed446a5adcb06b2e3af2181e57d17384cbbfaa.zip
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.
Diffstat (limited to 'spec')
-rw-r--r--spec/util_pubsub_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/util_pubsub_spec.lua b/spec/util_pubsub_spec.lua
index 5140a411..8476cb50 100644
--- a/spec/util_pubsub_spec.lua
+++ b/spec/util_pubsub_spec.lua
@@ -523,8 +523,8 @@ describe("util.pubsub", function ()
assert.spy(broadcaster).was_called();
local ok, items = service:get_items("node", true);
- assert.truthy(ok);
- assert.same(items, {});
+ assert.not_truthy(ok);
+ assert.equal(items, "persistent-items-unsupported");
end);
end)