The question is formulated this way as I\'m able to step into tested code in IDE and the actual code runs as expected, but the test fails.
There\'s a javascript file