2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +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
@@ -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'