()
| 221 | } |
| 222 | |
| 223 | getNextBodyPart() { |
| 224 | // Calls the appropriate display method for the next body |
| 225 | // part that needs to be displayed. Sets partToDisplayNext to |
| 226 | // null when finished. |
| 227 | if (this.partToDisplayNext === HEAD) { |
| 228 | this.partToDisplayNext = BODY; |
| 229 | return this.getHeadStr(); |
| 230 | } else if (this.partToDisplayNext === BODY) { |
| 231 | this.partToDisplayNext = FEET; |
| 232 | return this.getBodyStr(); |
| 233 | } else if (this.partToDisplayNext === FEET) { |
| 234 | this.partToDisplayNext = null; |
| 235 | return this.getFeetStr(); |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
| 240 |
no test coverage detected