Jwhiles / pure-functions-easy-testing

A workshop to help people start testing their code.
MIT License
2 stars 5 forks source link

Example 3 tests #6

Open jay-meister opened 7 years ago

jay-meister commented 7 years ago
test(`functions return our stuff`, (t) => {
  t.equal(visionChange(true), false);
  t.equal(visionChange(false), true);
  t.equal(updateDom(true), function)
  t.equal(updateDom(false), function)
})

Not really sure what those last two tests are about.

jay-meister commented 7 years ago

i have converted into q-unit but still unsure on these tests