aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_dataforms_spec.lua
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
commit531971e0b5610f20fb1e5a631c999000d15f1b3c (patch)
tree131de8b8eb49dbf06f9329ffda796bc6407a7db3 /spec/util_dataforms_spec.lua
parent1919588f28f6c669193043df6c1c6f1e80f8f707 (diff)
downloadprosody-531971e0b5610f20fb1e5a631c999000d15f1b3c.tar.gz
prosody-531971e0b5610f20fb1e5a631c999000d15f1b3c.zip
util.dataforms: Include a fixed field in test
Diffstat (limited to 'spec/util_dataforms_spec.lua')
-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);