2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Rename axios.createNew to axios.create

This commit is contained in:
Nick Uraltsev
2015-10-23 08:40:46 -07:00
parent 96afe324b3
commit 4ac0fbd1c1
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -33,12 +33,12 @@ describe('static api', function () {
});
it('should have factory method', function () {
expect(typeof axios.createNew).toEqual('function');
expect(typeof axios.create).toEqual('function');
});
});
describe('instance api', function () {
var instance = axios.createNew();
var instance = axios.create();
it('should have request methods', function () {
expect(typeof instance.request).toEqual('function');
+2 -2
View File
@@ -10,7 +10,7 @@ describe('instance', function () {
});
it('should make an http request', function (done) {
var instance = axios.createNew();
var instance = axios.create();
instance.request({
url: '/foo'
@@ -25,7 +25,7 @@ describe('instance', function () {
});
it('should use instance options', function (done) {
var instance = axios.createNew({ timeout: 1000 });
var instance = axios.create({ timeout: 1000 });
instance.request({
url: '/foo'