# HG changeset patch # User Kim Alvefur # Date 1531686942 -7200 # Node ID 7cdc718312c8b3a020edc096840f763d860026f3 # Parent 4336a2b97aba49bd3cd37a7aee0fef5a5296d82a util.dataforms: Include a fixed field in test diff -r 4336a2b97aba -r 7cdc718312c8 spec/util_dataforms_spec.lua --- a/spec/util_dataforms_spec.lua Sat Jul 14 21:34:22 2018 +0200 +++ b/spec/util_dataforms_spec.lua Sun Jul 15 22:35:42 2018 +0200 @@ -15,6 +15,10 @@ 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 @@ 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);