diff 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
parents 7a77f0c05382
children 5610f7c5b261
line wrap: on
line diff
--- a/spec/util_pubsub_spec.lua	Wed Jul 21 23:02:25 2021 +0200
+++ b/spec/util_pubsub_spec.lua	Thu Jul 22 19:53:21 2021 +0200
@@ -523,8 +523,8 @@
 			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)