aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-26 13:01:16 +0100
committerKim Alvefur <zash@zash.se>2021-03-26 13:01:16 +0100
commit45acd0367200f8c7bd9106bc00088a4753d5d019 (patch)
treebf08e79edce8e5768954ebad22c4f926c6fb08f8 /spec
parentf36d7d1161b728e12f87cbf19007ed57c367a384 (diff)
downloadprosody-45acd0367200f8c7bd9106bc00088a4753d5d019.tar.gz
prosody-45acd0367200f8c7bd9106bc00088a4753d5d019.zip
util.datamapper: Revert one special attribute to longer form
Had a name, using attr() broke it.
Diffstat (limited to 'spec')
-rw-r--r--spec/util_datamapper_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_datamapper_spec.lua b/spec/util_datamapper_spec.lua
index af460e60..8c66224d 100644
--- a/spec/util_datamapper_spec.lua
+++ b/spec/util_datamapper_spec.lua
@@ -54,7 +54,7 @@ describe("util.datampper", function()
type = "object";
xml = {namespace = "urn:xmpp:reactions:0"; name = "reactions"};
properties = {
- to = attr();
+ to = {type = "string"; xml = {attribute = true; name = "id"}};
reactions = {type = "array"; items = {type = "string"; xml = {name = "reaction"}}};
};
};