aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);