From 531971e0b5610f20fb1e5a631c999000d15f1b3c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 15 Jul 2018 22:35:42 +0200 Subject: util.dataforms: Include a fixed field in test --- spec/util_dataforms_spec.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/util_dataforms_spec.lua') 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 @@ -14,6 +14,10 @@ describe("util.dataforms", function () name = "FORM_TYPE", value = "xmpp:prosody.im/spec/util.dataforms#1", }; + { + type = "fixed"; + value = "Fixed field"; + }, { type = "boolean", label = "boolean-label", @@ -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); -- cgit v1.2.3