aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_pubsub_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-18 18:14:19 +0200
committerKim Alvefur <zash@zash.se>2018-08-18 18:14:19 +0200
commit9e291a9656a1ca50f5f5d736ba4ce1d8515eca90 (patch)
tree653df99ee31431280458c9a1dfcb881bae4ccff9 /spec/util_pubsub_spec.lua
parent8dc2b41947e28f4db2ea5c654f567476fa95833c (diff)
downloadprosody-9e291a9656a1ca50f5f5d736ba4ce1d8515eca90.tar.gz
prosody-9e291a9656a1ca50f5f5d736ba4ce1d8515eca90.zip
util.pubsub tests: Fix whitespace
Diffstat (limited to 'spec/util_pubsub_spec.lua')
-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 11dfeb0b..3f463ef2 100644
--- a/spec/util_pubsub_spec.lua
+++ b/spec/util_pubsub_spec.lua
@@ -270,7 +270,7 @@ describe("util.pubsub", function ()
end);
it("should allow subscribers to publish without an affiliation", function ()
assert.is_true(service:add_subscription("test", "stranger", "stranger"));
- local ok = service:publish("test", "stranger", "item1", "foo");
+ local ok = service:publish("test", "stranger", "item1", "foo");
assert.is_true(ok);
end);
it("should allow publishers to publish without a subscription", function ()
@@ -320,7 +320,7 @@ describe("util.pubsub", function ()
local ok, items = service:get_items("test", true);
assert.is_true(ok);
assert.equal(0, #items);
- assert.is_nil(next(items));
+ assert.is_nil(next(items));
end);
it("returns no items on an empty node", function ()
local ok, items = service:get_items("test", true);