mulesoft-labs / mule-match

A simple swapping app to use as a Reference app for React applications.
MIT License
6 stars 2 forks source link

Set up enzyme + mocha + chai + karma + phantomJS to run unit tests #2

Closed nanovazquez closed 8 years ago

nanovazquez commented 8 years ago

We can now run unit tests using npm test. For the unit tests, we are using mocha, chai, karma and phantomjs.

Notice that to write the tests we are using the Should API, that is more fluent than the rest (see assertion styles here) but it requires to run a setup() line at the beginning of each spec. This should be refactored and moved to an initialization phase.

Next pull requests will include: