React useState - pomodoro clock not passing test 5

test 5:

I can see an element, with corresponding id=“break-length”, which by default (on load) displays a value of 5

my app:

So, why does this test not pass?

Hello there,

If you open the test output, it gives you more details:

A value of 5 is not displayed by default: expected ' 5 ' to equal '5'
AssertionError: A value of 5 is not displayed by default: expected ' 5 ' to equal '5'

Hope this helps

Right, notice the spacing, there and compare to this line in the code:

<span id='break-length'> {pause} </span>

If I fix that, that test passes for me.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.