Aatish Molasi Aatish Molasi - 1 year ago 130
Javascript Question

The 'describe' keyword in javascript

So I am a newbie in javascript and i had been going through some one else's code and I found this..

describe('deviceready', function() {
it('should report that it fired', function() {
spyOn(app, 'report');

What I don't understand is:
What exactly does the
keyword do?


- Its a phonegap application

- We are using the spine.js and jQuery libraries

Answer Source

Describe is a function in the Jasmine testing framework. It simply describes the suite of test cases enumerated by the "it" functions.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download