Software /
code /
prosody
Comparison
spec/util_pubsub_spec.lua @ 8564:fd41dc4a78e9
util_pubsub_spec: Move util.pubsub import into a setup block
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2018 12:51:27 +0100 |
parent | 8558:5de663cef508 |
child | 8647:638ff2ad98e6 |
comparison
equal
deleted
inserted
replaced
8563:50f2ad088589 | 8564:fd41dc4a78e9 |
---|---|
1 local pubsub = require "util.pubsub"; | 1 local pubsub; |
2 setup(function () | |
3 pubsub = require "util.pubsub"; | |
4 end); | |
5 | |
2 describe("util.pubsub", function () | 6 describe("util.pubsub", function () |
3 describe("simple node creation and deletion", function () | 7 describe("simple node creation and deletion", function () |
4 -- Roughly a port of scansion/scripts/pubsub_createdelete.scs | 8 -- Roughly a port of scansion/scripts/pubsub_createdelete.scs |
5 local service = pubsub.new(); | 9 local service = pubsub.new(); |
6 | 10 |