diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-25 20:46:55 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-25 20:46:55 +0100 |
commit | 11095184a53cc144e37560b7bbbf4de19ce669c7 (patch) | |
tree | 09b44781b668b0bdc6ec729d5979680a65ce0839 /spec/util_stanza_spec.lua | |
parent | b340e5e4628e2f5c136fe1f4300821d89ed4cb94 (diff) | |
download | prosody-11095184a53cc144e37560b7bbbf4de19ce669c7.tar.gz prosody-11095184a53cc144e37560b7bbbf4de19ce669c7.zip |
util.stanza: Remove redundant check for attrs
A stanza can't not have attrs if created the correct way
Diffstat (limited to 'spec/util_stanza_spec.lua')
-rw-r--r-- | spec/util_stanza_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/util_stanza_spec.lua b/spec/util_stanza_spec.lua index 7d710888..3b9084fa 100644 --- a/spec/util_stanza_spec.lua +++ b/spec/util_stanza_spec.lua @@ -176,6 +176,13 @@ describe("util.stanza", function() 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() |