mardi 1 mai 2018

Javascript Error .... is not a function

I am executing tests of Angular using Jasmine and Karma. The tests can be executed until a certain point and karma launches itself but is idle, without results. The error that I have is this:

Chrome 65.0.3325 (Windows 7.0.0) ERROR
  Uncaught TypeError: env.stopOnSpecFailure is not a function
  at http://localhost:9877C:/Users/67563478/new_workspace/onconsup/node_modules/
karma-jasmine-html-reporter/src/lib/adapter.js:26

Chrome 65.0.3325 (Windows 7.0.0) ERROR

My adapter.js part of file that gives this error is like this:

  

 

 var env = jasmine.getEnv();
  var stoppingOnSpecFailure = queryString.getParam("failFast");
  env.stopOnSpecFailure(stoppingOnSpecFailure);

Is there something wrong?

Aucun commentaire:

Enregistrer un commentaire