mardi 1 août 2017

Jasmine doesn't found lodash, or not recognize specs

I installed node and lodash and several other libraries

    npm install grunt-contrib-jshint --save-dev
    npm install grunt-contrib-testem --save-dev
    npm install sinon --save-dev
    npm install -g phantomjs
    npm install lodash --save
    npm install jquery --save
    npm install jasmine-node --save-dev

But when I tried to run the jasmine test, one of two things happens:

  1. Or the symbol _ it's not recognize
  2. Or jasmine doesn't recognize the specs as specs

enter image description here

This is an screenshot of my code and test. As you can see, if I add the _ reference, the result is

enter image description here

If I remove that, the result is

enter image description here

Aucun commentaire:

Enregistrer un commentaire