Ad
  • Custom User Avatar

    Well unfortunately we're not mind-readers.

    I believe your code has some serious logical errors. You need to add a bunch of console.logs everywhere to see how it behaves and where it goes wrong.

  • Custom User Avatar

    The tests are fine, your code isn't. Don't use global vars, they keep their value between tests.