Software /
code /
prosody
Comparison
spec/util_pubsub_spec.lua @ 9176:1068f9b82e2b
util.pubsub tests: Add TODO
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 12 Aug 2018 11:43:38 +0100 |
parent | 9175:43b6f67aba05 |
child | 9178:f226b7b5486b |
comparison
equal
deleted
inserted
replaced
9175:43b6f67aba05 | 9176:1068f9b82e2b |
---|---|
1 local pubsub; | 1 local pubsub; |
2 setup(function () | 2 setup(function () |
3 pubsub = require "util.pubsub"; | 3 pubsub = require "util.pubsub"; |
4 end); | 4 end); |
5 | |
6 --[[TODO: | |
7 Retract | |
8 Purge | |
9 auto-create/auto-subscribe | |
10 Item store/node store | |
11 resize on max_items change | |
12 service creation config provides alternative node_defaults | |
13 get subscriptions | |
14 ]] | |
5 | 15 |
6 describe("util.pubsub", function () | 16 describe("util.pubsub", function () |
7 describe("simple node creation and deletion", function () | 17 describe("simple node creation and deletion", function () |
8 -- Roughly a port of scansion/scripts/pubsub_createdelete.scs | 18 -- Roughly a port of scansion/scripts/pubsub_createdelete.scs |
9 local service = pubsub.new(); | 19 local service = pubsub.new(); |