fix tests
This commit is contained in:
parent
a99e37bbdc
commit
e4ebb535ca
4 changed files with 11 additions and 9 deletions
|
|
@ -75,15 +75,15 @@ describe('http utils', function() {
|
|||
done();
|
||||
});
|
||||
});
|
||||
it('should get with default error', function() {
|
||||
it('should get with default error', function(done) {
|
||||
xhr.error = 1;
|
||||
|
||||
var ret = httpUtils.request({
|
||||
xhr: xhr,
|
||||
method: 'GET',
|
||||
url: 'http://test',
|
||||
});
|
||||
ret._error.should.throw()
|
||||
}).error(function(){
|
||||
done();
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue