beforeEach(function() {
jasmine.Ajax.install();
});
it('sets ajax default url', function(done) {
var myClient = new MyClient(serverUrl);
myClient
.client('/')
.then(function(response) {
console.log("THEN --> " + JSON.stringify(response));
var request = jasmine.Ajax.requests.mostRecent();
expect(request.url).toContain(serverUrl);
done();
})
.catch(function(response) {
console.log("CATCH --> " + JSON.stringify(response));
expect(JSON.stringify(response)).toBe(undefined);
done();
});
console.log("IT --> ");
});