()
| 56 | } |
| 57 | |
| 58 | end() { |
| 59 | Object.keys(this.buffers).forEach((channel) => { |
| 60 | if (this.buffers[channel].text.length) { |
| 61 | this.lines.push({ |
| 62 | channel, |
| 63 | text: this.buffers[channel].text, |
| 64 | bare: true, |
| 65 | }); |
| 66 | this.buffers[channel] = { text: '', offset: 0}; |
| 67 | } |
| 68 | }); |
| 69 | } |
| 70 | |
| 71 | forbid(pattern, channel) { |
| 72 | const failure = new TestFailure('forbidden-string-present', { |