mardi 3 mai 2016

javascript extjs 4.0.7 using jasmine

Using Sencha's Extjs 4.0.7

opticsCfgStore.load({

    deviceId:devId,
     scope: this,
      callback: function(records, operation, success) {
        if (success) {
           console.log("SUCCESS :- Config load callback", records, operation,              success);
         } else {
           console.log("FAILURE :- Wavelength Display callback", records,             operation, success);
      }
   }});

How do I mock this using Jasmine in my spec js file. Thanks for your help in advance

Aucun commentaire:

Enregistrer un commentaire