mardi 20 décembre 2016

Ember.js can't mock ajax using jquery-mockjax

I use jquery-mockjax to mock my AJAX request for my tests and after I upgraded my ember from 2.3.0 -> 2.10.0 it no longer works because my service is using Ember.$.ajax() instead of directly $.ajax()

any idea how to make mockjax still work with Ember.$.ajax()? Or shall I just replace all Ember.$.ajax() instance to $.ajax()? Is this the only way?




Aucun commentaire:

Enregistrer un commentaire