mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Fixing failing test
This commit is contained in:
@@ -6,12 +6,12 @@ describe('instance', function () {
|
|||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
jasmine.Ajax.uninstall();
|
jasmine.Ajax.uninstall();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have the same methods as default instance', function () {
|
it('should have the same methods as default instance', function () {
|
||||||
var instance = axios.create();
|
var instance = axios.create();
|
||||||
|
|
||||||
for (var prop in axios) {
|
for (var prop in axios) {
|
||||||
if (['Axios', 'create', 'all', 'spread'].indexOf(prop) > -1) {
|
if (['Axios', 'create', 'all', 'spread', 'default'].indexOf(prop) > -1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
expect(typeof instance[prop]).toBe(typeof axios[prop]);
|
expect(typeof instance[prop]).toBe(typeof axios[prop]);
|
||||||
|
|||||||
Reference in New Issue
Block a user