From 576b43151c407e03525623a143024bda8926e640 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Mar 2021 13:07:10 +0100 Subject: util.datamapper: Limited support for unparsing simple arrays of strings --- spec/util_datamapper_spec.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'spec/util_datamapper_spec.lua') 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); -- cgit v1.2.3