I am having trouble with the tests for element #time-left in the 25+5 clock. I am rendering to a <span>
element as shown below(I’ve also tried div and h1 as elements) For the life of me I cant figure out what the unit tests don’t like. Any help is appreciated.
<span id="time-left" ><Time sRemain={this.state.remain} /></span>
function Time(props) {
return (("00" + (Math.floor(props.sRemain / 60).toString())).slice(-2) + ":" + (("00" + ((props.sRemain % 60).toString())).slice(-2)));
}
This is the the whole pen https://codepen.io/avatar414/pen/vYJeKaQ
…