Javascript Calculator tests not passing... Is this a bug?

Hello,

I’m working on my Javascript Calculator using React: https://codepen.io/rubenvara/pen/GRoGWRV

When I try each of the requirements manually, clicking on the buttons myself, the display shows the expected result every time (except for user story #13, I haven’t started working on that one yet).

But when I try to pass the tests, numbers #9, #12, #13, #14 and #15 fail every time. When I input manually the test (ie 10.5 - 5.5 should output 5, or 5 - 2 = / 2 = should output 1.5) I can see the correct result, but apparently the test suite doesn’t (it sees 5.5 in the first example, 2 in the second)…

I’ve been searching the forum but can’t find anything similar. I asume it’s a bug in my code, but can’t find the reason.

Could someone help with this, please?