spec/stanzacmp_spec.lua

changeset 151
8191f165b9dd
parent 101
91a9e557e0e5
child 153
f83ea6e5c3d8
--- a/spec/stanzacmp_spec.lua	Wed Sep 12 11:37:55 2018 +0100
+++ b/spec/stanzacmp_spec.lua	Thu Sep 13 16:05:24 2018 +0100
@@ -139,4 +139,16 @@
 			</x>
 		</s>]]);
 	end);
+	it("should match", function ()
+		yes([[<iq type='set' id='{scansion:any}'>
+			<query ver='{scansion:any}' xmlns='jabber:iq:roster'>
+				<item xmlns='jabber:iq:roster' jid='nurse@localhost' subscription='none'/>
+			</query>
+		</iq>]],
+		[[<iq type='set' id='ncvDjS1d'>
+			<query ver='1' xmlns='jabber:iq:roster'>
+				<item xmlns='jabber:iq:roster' jid='nurse@localhost' subscription='none'/>
+			</query>
+		</iq>]]);
+	end);
 end);

mercurial