aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-18 13:07:10 +0100
committerKim Alvefur <zash@zash.se>2021-03-18 13:07:10 +0100
commit576b43151c407e03525623a143024bda8926e640 (patch)
tree6d57a0846b3fd0a04b7d3761c551c1b7aa4d3f69 /spec
parentc62c5b307ec907b78f309dbbe90b6569fe91a3f8 (diff)
downloadprosody-576b43151c407e03525623a143024bda8926e640.tar.gz
prosody-576b43151c407e03525623a143024bda8926e640.zip
util.datamapper: Limited support for unparsing simple arrays of strings
Diffstat (limited to 'spec')
-rw-r--r--spec/util_datamapper_spec.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/util_datamapper_spec.lua b/spec/util_datamapper_spec.lua
index aacaf995..ee4d3c16 100644
--- a/spec/util_datamapper_spec.lua
+++ b/spec/util_datamapper_spec.lua
@@ -103,15 +103,11 @@ describe("util.datampper", function()
assert.same(x:get_child("delay", "urn:xmpp:delay").attr, u:get_child("delay", "urn:xmpp:delay").attr);
assert.same(x:get_child("origin-id", "urn:xmpp:sid:0").attr, u:get_child("origin-id", "urn:xmpp:sid:0").attr);
for _, tag in ipairs(x.tags) do
- if tag.name ~= "UNRELATED" and tag.name ~= "reactions" then
+ if tag.name ~= "UNRELATED" then
assert.truthy(u:get_child(tag.name, tag.attr.xmlns) or u:get_child(tag.name), tag:top_tag())
end
end
- assert.equal(#x.tags-2, #u.tags)
-
- pending("arrays", function ()
- assert.truthy(u:get_child("reactions", "urn:xmpp:reactions:0"))
- end);
+ assert.equal(#x.tags-1, #u.tags)
end);
end);