aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Pubsub: Add tests for :get_last_item() and fix for non-persistent nodesMatthew Wild2018-08-181-0/+26
|
* util.time: Add brief testsKim Alvefur2018-08-181-0/+31
|
* util.pubsub: Silence warnings in tests [luacheck]Kim Alvefur2018-08-161-1/+1
| | | | Warnings introduced in c53663e13b51 according to bisect
* util.pubsub tests: Add TODOMatthew Wild2018-08-121-0/+10
|
* util.pubsub tests: Add tests to confirm new access model is enforced on ↵Matthew Wild2018-08-121-0/+24
| | | | config change
* util.pubsub tests: Add initial node config testsMatthew Wild2018-08-121-0/+18
|
* util.pubsub tests: Extend publishing tests to check for correct notification ↵Matthew Wild2018-08-121-1/+13
| | | | behaviour on subscribe/unsubscribe
* util.pubsub tests: Add tests for publish_model (publishers, open, subscribers)Matthew Wild2018-08-121-6/+64
|
* util.pubsub tests: Add some initial access model tests (open and whitelist)Matthew Wild2018-08-111-0/+52
|
* spec: Correct order of arguments to asserts in configmanager testsKim Alvefur2018-08-111-10/+10
| | | | assert.foo(expect, got, ...)
* util.pubsub: Drop now redundant capabilities from testsKim Alvefur2018-08-081-6/+0
|
* util.dataforms: Allow passing the current values to be used in stead of ↵Kim Alvefur2018-08-051-0/+39
| | | | omitted fields
* util.dataforms: Add failing test for #1177Kim Alvefur2018-06-301-0/+27
|
* util.dataforms: Include a fixed field in testKim Alvefur2018-07-151-0/+10
|
* util.xmppstream: Add tests for various XML features forbidden by the RFCMatthew Wild2018-07-111-44/+90
|
* util_pubsub_spec: Add test for #1082Kim Alvefur2018-07-101-0/+53
|
* util.stanza: Brief tests for :remove_childrenKim Alvefur2018-07-081-0/+22
|
* util.dataforms: Add a simple function for identifying form typesKim Alvefur2018-06-021-0/+9
| | | | | This is meant to allow identifying forms without parsing them completely.
* util.dataforms: Add initial testsKim Alvefur2018-06-021-0/+305
| | | | | This covers basic form generation, that the fields have the correct attributes, children and text content.
* spec/util_pubsub: Test whether someone can subscribe to a nodeKim Alvefur2018-05-201-1/+13
| | | | Test fails because of missing normalize_jid
* spec/util_iterators: Remove unused import of util.set [luacheck]Kim Alvefur2018-05-181-1/+0
|
* Fix wrong tests committed with 7b621a4a2e8dMatthew Wild2018-05-182-21/+15
|
* util.iterators: Add join() method and testsMatthew Wild2018-05-181-0/+21
|
* util.events: Add more tests (100% line coverage)Matthew Wild2018-04-251-0/+21
|
* util.events: Add testsMatthew Wild2018-04-241-0/+191
|
* net.http.server: Prevent loading of net.server in tests (breaks unrelated ↵Kim Alvefur2018-03-241-0/+1
| | | | tests for some reason)
* util.async: Remove async.once(), can now be replaced by runner():run(func)Matthew Wild2018-03-231-19/+0
|
* util.async: Make parameters to async.runner() optionalMatthew Wild2018-03-231-0/+20
|
* util.async: Use wrapper for once runner (thanks luacheck)Kim Alvefur2018-03-221-0/+1
|
* util.async: tests: ensure async.once() propagates errorsMatthew Wild2018-03-221-0/+8
|
* util.async: Add once() to create temporary runnersMatthew Wild2018-03-221-0/+10
|
* util.async: Add ready() to check whether running in async contextMatthew Wild2018-03-221-0/+14
|
* util.pubsub: Add simple test covering publishing and retrieving an itemKim Alvefur2018-03-211-0/+24
|
* util.stanza: tests: Add more invalid data types and update for :text(nil) ↵Matthew Wild2018-03-211-10/+20
| | | | and :text("")
* util.async: tests: more code re-useMatthew Wild2018-03-191-32/+20
|
* util.async: tests: luacheck-clean, fixes some actual issuesMatthew Wild2018-03-191-64/+65
|
* util.async: tests: remove obsolete code and commentsMatthew Wild2018-03-191-5/+0
|
* util.async: tests: slight modifications to allow more code reuse in testsMatthew Wild2018-03-191-12/+15
|
* util.async: Add some more tests for wait/doneMatthew Wild2018-03-181-0/+40
|
* util.stanza: Switch from asserts to if's, improve performance, errors and testsMatthew Wild2018-03-181-26/+37
|
* util.async: tests: Ensure done() can be called before wait()Matthew Wild2018-03-171-0/+18
|
* util.async: tests: Add helper function to create mock watcher callbacksMatthew Wild2018-03-171-9/+15
|
* util.async: Trim trailing whitespace in tests [luacheck]Kim Alvefur2018-03-171-26/+26
|
* util.stanza: Test coverage of is_stanza()Kim Alvefur2018-03-171-0/+16
|
* util.format: Add test coverage for case of extra nil argumentKim Alvefur2018-03-171-0/+1
|
* util.format: Fix tests to have expected value firstKim Alvefur2018-03-171-5/+5
|
* util.async: tests: replace peeking at internal state with monitoring correct ↵Matthew Wild2018-03-171-37/+68
| | | | callback behaviour
* util.async: if debugging is enabled, use runner id in logsMatthew Wild2018-03-171-1/+1
|
* util.async: ensure change in e77b37de482e applies after out-of-loop resume alsoMatthew Wild2018-03-171-0/+25
|
* util.async: Behaviour change: continue to process queued items after errorsMatthew Wild2018-03-171-0/+24
|