Comparison

spec/util_stanza_spec.lua @ 9308:21c2f3331c59

util.stanza tests: Remove unused variable #luacheck
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Sep 2018 16:45:18 +0100
parent 9307:feaef6215bb8
child 9630:bff66c3faceb
comparison
equal deleted inserted replaced
9307:feaef6215bb8 9308:21c2f3331c59
90 assert.are.equal("foo", i.attr.id); 90 assert.are.equal("foo", i.attr.id);
91 end); 91 end);
92 92
93 it("should reject stanzas with no id", function () 93 it("should reject stanzas with no id", function ()
94 assert.has.error_match(function () 94 assert.has.error_match(function ()
95 local i = st.iq(); 95 st.iq();
96 end, "id attribute"); 96 end, "id attribute");
97 97
98 assert.has.error_match(function () 98 assert.has.error_match(function ()
99 local i = st.iq({ foo = "bar" }); 99 st.iq({ foo = "bar" });
100 end, "id attribute"); 100 end, "id attribute");
101 end); 101 end);
102 end); 102 end);
103 103
104 describe("#presence()", function () 104 describe("#presence()", function ()