(str)
| 176 | isInvalidPayload(class="st">'2["disconnect","123"]'); |
| 177 | |
| 178 | const isInvalidAttachmentCount = (str) => |
| 179 | expect(() => new Decoder().add(str)).to.throwException( |
| 180 | /^Illegal attachments$/, |
| 181 | ); |
| 182 | |
| 183 | isInvalidAttachmentCount(class="st">"5"); |
| 184 | isInvalidAttachmentCount(class="st">"51"); |
no test coverage detected