i\'m trying to write a unit test for one function written in JavaScript, i\'m writing the unit test in typescript. however the test works fine with typescript but it failed when