mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Improving tests in anticipation for saucelabs support
This commit is contained in:
@@ -81,8 +81,7 @@ describe('options', function () {
|
||||
|
||||
it('should accept base URL', function (done) {
|
||||
var request;
|
||||
|
||||
const instance = axios.create({
|
||||
var instance = axios.create({
|
||||
baseURL: 'http://test.com/'
|
||||
});
|
||||
|
||||
@@ -100,8 +99,7 @@ describe('options', function () {
|
||||
|
||||
it('should ignore base URL if request URL is absolute', function (done) {
|
||||
var request;
|
||||
|
||||
const instance = axios.create({
|
||||
var instance = axios.create({
|
||||
baseURL: 'http://someurl.com/'
|
||||
});
|
||||
|
||||
|
||||
@@ -63,9 +63,7 @@ describe('requests', function () {
|
||||
|
||||
var finish = function () {
|
||||
expect(resolveSpy).not.toHaveBeenCalled();
|
||||
|
||||
expect(rejectSpy).toHaveBeenCalledWith(jasmine.any(Error));
|
||||
expect(rejectSpy.calls.argsFor(0)[0].message).toEqual('Network Error');
|
||||
expect(rejectSpy).toHaveBeenCalled();
|
||||
|
||||
done();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user