()
| 26 | } |
| 27 | |
| 28 | toString() { |
| 29 | const actorText = this.actor |
| 30 | |
| 31 | if (this.isBDD()) { |
| 32 | return `${this.prefix}${actorText} ${this.title} "${this.humanizeArgs()}${this.suffix}"` |
| 33 | } |
| 34 | |
| 35 | if (actorText === 'I') { |
| 36 | return `${this.prefix}${actorText} ${this.humanize()} ${this.humanizeArgs()}${this.suffix}` |
| 37 | } |
| 38 | |
| 39 | if (!this.actor) { |
| 40 | return `${this.title} ${this.humanizeArgs()}${this.suffix}`.trim() |
| 41 | } |
| 42 | |
| 43 | return `On ${this.prefix}${actorText}: ${this.humanize()} ${this.humanizeArgs()}${this.suffix}`.trim() |
| 44 | } |
| 45 | |
| 46 | humanize() { |
| 47 | return humanizeString(this.title) |
no test coverage detected