From dfed446a5adcb06b2e3af2181e57d17384cbbfaa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 22 Jul 2021 19:53:21 +0200 Subject: 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. --- spec/util_pubsub_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/util_pubsub_spec.lua') 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) -- cgit v1.2.3