Comparison

spec/util_datamapper_spec.lua @ 11494:284c822d4c3d

util.datamapper: Fix spelling in tests
author Kim Alvefur <zash@zash.se>
date Sun, 28 Mar 2021 14:00:21 +0200
parent 11488:332c9291f4d5
child 12133:11060c8919b6
comparison
equal deleted inserted replaced
11493:77f2d45799ed 11494:284c822d4c3d
73 }; 73 };
74 74
75 x = xml.parse [[ 75 x = xml.parse [[
76 <message xmlns="jabber:client" xml:lang="en" to="a@test" from="b@test" type="chat" id="1"> 76 <message xmlns="jabber:client" xml:lang="en" to="a@test" from="b@test" type="chat" id="1">
77 <body>Hello</body> 77 <body>Hello</body>
78 <delay xmlns='urn:xmpp:delay' from='test' stamp='2021-03-07T15:59:08+00:00'>Becasue</delay> 78 <delay xmlns='urn:xmpp:delay' from='test' stamp='2021-03-07T15:59:08+00:00'>Because</delay>
79 <UNRELATED xmlns='http://jabber.org/protocol/chatstates'/> 79 <UNRELATED xmlns='http://jabber.org/protocol/chatstates'/>
80 <active xmlns='http://jabber.org/protocol/chatstates'/> 80 <active xmlns='http://jabber.org/protocol/chatstates'/>
81 <fallback xmlns='urn:xmpp:fallback:0'/> 81 <fallback xmlns='urn:xmpp:fallback:0'/>
82 <origin-id xmlns='urn:xmpp:sid:0' id='qgkmMdPB'/> 82 <origin-id xmlns='urn:xmpp:sid:0' id='qgkmMdPB'/>
83 <stanza-id xmlns='urn:xmpp:sid:0' id='abc1' by='muc'/> 83 <stanza-id xmlns='urn:xmpp:sid:0' id='abc1' by='muc'/>
94 from = "b@test"; 94 from = "b@test";
95 type = "chat"; 95 type = "chat";
96 id = "1"; 96 id = "1";
97 lang = "en"; 97 lang = "en";
98 body = "Hello"; 98 body = "Hello";
99 delay = {from = "test"; stamp = "2021-03-07T15:59:08+00:00"; reason = "Becasue"}; 99 delay = {from = "test"; stamp = "2021-03-07T15:59:08+00:00"; reason = "Because"};
100 state = "active"; 100 state = "active";
101 fallback = true; 101 fallback = true;
102 origin_id = "qgkmMdPB"; 102 origin_id = "qgkmMdPB";
103 stanza_ids = {{id = "abc1"; by = "muc"}; {id = "xyz2"; by = "host"}}; 103 stanza_ids = {{id = "abc1"; by = "muc"}; {id = "xyz2"; by = "host"}};
104 react = { 104 react = {