CLIxIndia-Dev / CLIxIndia-Dev/MiTiRobot
Getting the parent of the "back" scenario
Open
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
This seems like another opportunity for pulling out a method and adding some tests (~lines 115-120):
```
if last_element.is_root_node():
parent = last_element
children = last_element.get_children()
else:
parent = last_element.parent
children = parent.get_children()
```
And then a test for each scenario...
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.