vendredi 27 novembre 2015

How do I run Jasmine tests in Microsoft Edge?

I am trying to run Jasmine js tests in Microsoft Edge, but I get the following error:

Object doesn't support property or method 'initializeJasmine'

I am launching my tests from visual studio with the Chutzpah plugin.

From what I can see in the edge console, the exception is from the following code:

var currentWindowOnload = window.onload;

window.onload = function() {
   if (currentWindowOnload) {
      currentWindowOnload();
   }
   window.initializeJasmine(); // <--- Exception here
};

My tests runs in all my other browsers (Chrome, IE, FF and Opera), but it doesn't seem to work in MSEdge.

Anyone having the same issue?

How can I make them run in Microsoft Edge?

Aucun commentaire:

Enregistrer un commentaire