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

Remove usages of isOldIE in tests

This commit is contained in:
Rikki Gibson
2018-07-28 11:04:23 -07:00
committed by Khaled Garbaya
parent 7b6f541e9d
commit 33747ee8fb
2 changed files with 0 additions and 38 deletions
-20
View File
@@ -8,39 +8,19 @@ describe('utils::isX', function () {
});
it('should validate ArrayBuffer', function () {
// ArrayBuffer doesn't exist in IE8/9
if (isOldIE && typeof ArrayBuffer === 'undefined') {
return;
}
expect(utils.isArrayBuffer(new ArrayBuffer(2))).toEqual(true);
expect(utils.isArrayBuffer({})).toEqual(false);
});
it('should validate ArrayBufferView', function () {
// ArrayBuffer doesn't exist in IE8/9
if (isOldIE && typeof ArrayBuffer === 'undefined') {
return;
}
expect(utils.isArrayBufferView(new DataView(new ArrayBuffer(2)))).toEqual(true);
});
it('should validate FormData', function () {
// FormData doesn't exist in IE8/9
if (isOldIE && typeof FormData === 'undefined') {
return;
}
expect(utils.isFormData(new FormData())).toEqual(true);
});
it('should validate Blob', function () {
// Blob doesn't exist in IE8/9
if (isOldIE && typeof Blob === 'undefined') {
return;
}
expect(utils.isBlob(new Blob())).toEqual(true);
});