Software /
code /
prosody
Diff
spec/util_stanza_spec.lua @ 10443:f28718f46196
util.stanza: Remove redundant check for attrs
A stanza can't not have attrs if created the correct way
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 25 Nov 2019 20:46:55 +0100 |
parent | 10442:22db763c510c |
child | 10444:4eab1f5a4f3b |
line wrap: on
line diff
--- a/spec/util_stanza_spec.lua Mon Nov 25 20:44:05 2019 +0100 +++ b/spec/util_stanza_spec.lua Mon Nov 25 20:46:55 2019 +0100 @@ -176,6 +176,13 @@ st.reply(not "a stanza"); end, "expected stanza"); end); + + it("should reject not-stanzas", function () + assert.has.error_match(function () + st.reply({name="x"}); + end, "expected stanza"); + end); + end); describe("#error_reply()", function()