aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-15 22:35:42 +0200
committerKim Alvefur <zash@zash.se>2018-07-15 22:35:42 +0200
commit0913989a69ec274a2325c00fbae966973260e89f (patch)
tree131de8b8eb49dbf06f9329ffda796bc6407a7db3
parent5db776ea9ec1ba5a5e980b2ccd72c1373e599610 (diff)
downloadprosody-0913989a69ec274a2325c00fbae966973260e89f.tar.gz
prosody-0913989a69ec274a2325c00fbae966973260e89f.zip
util.dataforms: Include a fixed field in test
-rw-r--r--spec/util_dataforms_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/util_dataforms_spec.lua b/spec/util_dataforms_spec.lua
index 56751041..f4c0d8b5 100644
--- a/spec/util_dataforms_spec.lua
+++ b/spec/util_dataforms_spec.lua
@@ -15,6 +15,10 @@ describe("util.dataforms", function ()
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 @@ describe("util.dataforms", function ()
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);