:::: MENU ::::

Flickr Search App with Angular.js Part 2

In previous post i’ve built flickr search app with angularjs you can read here. In this tutorial i will show you how to test application with Karma, Jasmine, Phantomjs.

I will use npm to download necessary libraries. You can find npm terms below.

After download Karma, i need to initialize karma with “karma init” to create karma.conf.js.

I will create test->unit->flickrAngularAppUnitSpec.js file to write test with following code.

Now we can run “karma start karma.conf.js” to run tests. Keep running tests.

You can see live demo here and you can download source code here.

Hope to see you in next tutorials.

So, what do you think ?