diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-15 22:35:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-15 22:35:42 +0200 |
commit | 0913989a69ec274a2325c00fbae966973260e89f (patch) | |
tree | 131de8b8eb49dbf06f9329ffda796bc6407a7db3 | |
parent | 5db776ea9ec1ba5a5e980b2ccd72c1373e599610 (diff) | |
download | prosody-0913989a69ec274a2325c00fbae966973260e89f.tar.gz prosody-0913989a69ec274a2325c00fbae966973260e89f.zip |
util.dataforms: Include a fixed field in test
-rw-r--r-- | spec/util_dataforms_spec.lua | 10 |
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); |