thibmaek/pure-fun

✅ Write unit tests

Closed this issue · 4 comments

✅ Write unit tests

Hi Hacktoberfest contributors!

This one is a really easy one for javascript developers! This repo consists of very localised and simple pure functions that do not modify their values and just return new data.

But of course to rely on this set, it needs some unit testing to make sure nothing breaks.
jest is already in the devDependencies so basically it only needs some simple assertions to test these utils!

I can jump on this over the next few days. Haven't had a chance to play around with Jest yet.

@colmose That's OK! Jest is very much like Jasmine (actually based on it) or Mocha.

Had a bit of a read of the matchers, etc recently but there's nothing like taking it out for a spin!