Ad
  • Custom User Avatar

    Hello. The following information is received in the test: "There should be 1 ship sunk: expected +0 to equal 1"
    And even if I assign "result.sync = 1;" before return (as a test), the test result will be "There should be 1 ship sunk: expected +0 to equal 1".
    The rest, except for the value "1", the test perceives as it should (if I assign "result.sync = 100;" before return (as a test), the test result will be "There should be 1 ship sunk: expected 100 to equal 1")
    What could be the reason? (why does the test perceive "1" as "+0"?)
    (JS solution)