10

Functional test are failing.

Expected: 7109
Got: 9000

Grep code-base for 7109. No findings. 0_o

Dig through test setup written by a drunk.

Find:

assert(actualPrice === 1800 * conversionRate)

Goddamnit. You shall not calculate your expected values in a test setup.

Comments
  • 0
    Reminds me of when I forgot to mock the JS Date object.
    It was animation code, so tests were failing.
    I later realized I needed a fake Date.now() function and can't use the real one.
Add Comment