cyChop / beverages-js

📝 A utility to display the list of the hot brews available.
https://cychop.github.io/beverages-js
MIT License
2 stars 0 forks source link

Add unit testing for the view #91

Closed cyChop closed 8 years ago

cyChop commented 8 years ago

I want to test the jQuery plugin as well as the view. It seems jasmine-jquery is what would be ideal for the job, but I have not succeeded yet in making it work nicely with karma and webpack.

I always end up with the error jasmine is not defined, which I suppose jasmine-jquery tries to access to set the fixtures. My web searches have proved useless so far.

I'll take any advice on how to achieve using jasmine-jquery in my context or how to better test the front-side of the JS.

cyChop commented 8 years ago

The current failing attempt is on branch jasmine-jquery-trial.

cyChop commented 8 years ago

Configuration's done, let's go testing!

cyChop commented 8 years ago

Coverage is not perfect, but it'll do for now. Tests will be added as required.