Software /
code /
prosody
Diff
spec/util_dataforms_spec.lua @ 9046:7cdc718312c8
util.dataforms: Include a fixed field in test
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 15 Jul 2018 22:35:42 +0200 |
parent | 8864:cf2f66b233d1 |
child | 9083:5d3639e415bd |
line wrap: on
line diff
--- a/spec/util_dataforms_spec.lua Sat Jul 14 21:34:22 2018 +0200 +++ b/spec/util_dataforms_spec.lua Sun Jul 15 22:35:42 2018 +0200 @@ -15,6 +15,10 @@ value = "xmpp:prosody.im/spec/util.dataforms#1", }; { + type = "fixed"; + value = "Fixed field"; + }, + { type = "boolean", label = "boolean-label", name = "boolean-field", @@ -310,5 +314,11 @@ assert.equal("xmpp:prosody.im/spec/util.dataforms#1", dataforms.get_type(xform)); end); end); + + describe(":data", function () + it("works", function () + assert.truthy(some_form:data(xform)); + end); + end); end);