samedi 23 juillet 2016

Jasmine preload necessary javascript files before running the testing spec

I got 2 javascript files:

  1. jquery.js which I want to write unit test for.

  2. jquery.test.js which contains jasmine describes that aimed to test the jquery functionality.

Is there any way to preload the jquery.js in jquery.test.js or somewhere else so I can reference the $ symbol?

Aucun commentaire:

Enregistrer un commentaire