* Configures a helper. * Helper name can be omitted and values will be applied to first helper. * @param {string | Object | FeatureConfigCallback} helper * @param {Object } [obj] * @returns {this}
(helper, obj)
| 58 | * @returns {this} |
| 59 | */ |
| 60 | config(helper, obj) { |
| 61 | if (!obj) { |
| 62 | obj = helper |
| 63 | helper = 0 |
| 64 | } |
| 65 | if (typeof obj === 'function') { |
| 66 | obj = obj(this.suite) |
| 67 | } |
| 68 | if (!this.suite.config) { |
| 69 | this.suite.config = {} |
| 70 | } |
| 71 | this.suite.config[helper] = obj |
| 72 | return this |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Append a tag name to scenario title |
no outgoing calls
no test coverage detected