Skip to content

Commit

Permalink
fix: update base URL test
Browse files Browse the repository at this point in the history
  • Loading branch information
GethosTheWalrus committed May 1, 2024
1 parent ed2b44a commit cbd1ff8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/specs/options.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AxiosHeaders from "../../lib/core/AxiosHeaders.js";
// import AxiosHeaders from "../../lib/core/AxiosHeaders.js";
// import isAbsoluteURL from '../../lib/helpers/isAbsoluteURL.js';

describe('options', function () {
beforeEach(function () {
Expand Down Expand Up @@ -63,8 +64,7 @@ describe('options', function () {
baseURL: 'http://test.com/'
});

instance.get('/foo');

instance.get('/foo')
getAjaxRequest().then(function (request) {
expect(request.url).toBe('http://test.com/foo');
done();
Expand All @@ -91,11 +91,12 @@ describe('options', function () {
});

instance.get('http://someotherurl.com/');

getAjaxRequest().then(function (request) {
expect(request.url).toBe('http://someurl.com/http://someotherurl.com/');
expect(request.url).toBe('http://someotherurl.com/');
done();
});

});

it('should change only the baseURL of the specified instance', function() {
Expand Down

0 comments on commit cbd1ff8

Please sign in to comment.