Adam Lee
Adam Lee

Reputation: 25738

How to run Javascript unit test?

I have some *.js which is suppose to be the unit tests. I am not sure how to invoke them.

describe('test123', function() {
        blah blah blah;
});

Upvotes: 1

Views: 4875

Answers (1)

Sampson
Sampson

Reputation: 268326

This appears to be Jasmine. If that is the case, you can learn more about it at http://pivotal.github.com/jasmine/, and you can invoke them with the SpecRunner. You can see a simple project example online here: https://github.com/pivotal/jasmine/wiki/A-simple-project.

Upvotes: 2

Related Questions