aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_datamapper_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-08 19:36:07 +0200
committerKim Alvefur <zash@zash.se>2022-07-08 19:36:07 +0200
commit82135131e7bce255e4d4ac020b99b3b2ba60394c (patch)
treea4ddc5d825000ed3cd2773d5d6e869aa34855af1 /spec/util_datamapper_spec.lua
parent8ee6441fc524b6ffc65fe327485cb8500b7a63f9 (diff)
parent89359b70dc0446cdda15da19173f460504bafc3d (diff)
downloadprosody-82135131e7bce255e4d4ac020b99b3b2ba60394c.tar.gz
prosody-82135131e7bce255e4d4ac020b99b3b2ba60394c.zip
Merge 0.12->trunk
Diffstat (limited to 'spec/util_datamapper_spec.lua')
-rw-r--r--spec/util_datamapper_spec.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/util_datamapper_spec.lua b/spec/util_datamapper_spec.lua
index 3b0ae87e..51ccf127 100644
--- a/spec/util_datamapper_spec.lua
+++ b/spec/util_datamapper_spec.lua
@@ -25,7 +25,7 @@ describe("util.datamapper", function()
from = attr();
type = attr();
id = attr();
- body = "string";
+ body = true; -- should be assumed to be a string
lang = {type = "string"; xml = {attribute = true; prefix = "xml"}};
delay = {
type = "object";
@@ -56,7 +56,8 @@ describe("util.datamapper", function()
xml = {namespace = "urn:xmpp:reactions:0"; name = "reactions"};
properties = {
to = {type = "string"; xml = {attribute = true; name = "id"}};
- reactions = {type = "array"; items = {type = "string"; xml = {name = "reaction"}}};
+ -- should be assumed to be array since it has 'items'
+ reactions = { items = { xml = { name = "reaction" } } };
};
};
stanza_ids = {
@@ -190,7 +191,8 @@ describe("util.datamapper", function()
version = {
type = "object";
xml = {name = "query"; namespace = "jabber:iq:version"};
- properties = {name = "string"; version = "string"; os = "string"};
+ -- properties should be assumed to be strings
+ properties = {name = true; version = {}; os = {}};
};
};
};