* Get the number of variations * @returns {number}
()
| 172 | * @returns {number} |
| 173 | */ |
| 174 | async getVariationCount() { |
| 175 | const { variations } = await this.getConfig(); |
| 176 | if (!Array.isArray(variations)) { |
| 177 | return 0; |
| 178 | } |
| 179 | return variations.length; |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Check if the variation exists |
no test coverage detected