Is it possible to make use $http without mocking ? And if yes, how can we
do it. Right now,
Below is the service from which the call is:
//Make the request we are interested in testing
ViewingRepositoryService.getThumbnail(obj,
"urn:adsk.wipdata:versionedFile:BQLHHmlCRd-bqnr8rxF2xA?version=1",
"medium").then(function (data) { //On success (this is what we are expecting)
console.log('success');
expect(data).to.deep.equal(mockData); //Validate the data
is correct
done();
},
function (err) {
console.log('err');
done();
})
It is neither coming to success nor error ? Please suggest.
Thanks
Vishal
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.