2
0
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:
Matt Zabriskie
2016-03-03 22:44:16 -07:00
parent e2fbc68960
commit e7aa98f9f5
2 changed files with 3 additions and 7 deletions
+2 -4
View File
@@ -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/'
});
+1 -3
View File
@@ -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();
};