MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / toString

Method toString

lib/step/meta.js:28–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

toCliStyledMethod · 0.95

Calls 3

isBDDMethod · 0.95
humanizeMethod · 0.95
humanizeArgsMethod · 0.80

Tested by

no test coverage detected