This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$httpBackend cannot mock binary blob responses at IE11 (InvalidStateError) #9669
Closed
Description
I found this issue running tests with karma at IE11 / Win8.1.
When i try to mock a blob response with $httpBackend.expect
, i got InvalidStateError
.
I dig and found that this happens because of the angular.copy
which clones fake response data.
If i hack angular.copy
with something like this the error stops.
if (isBlob(source)) {
destination = new Blob([source]);
} else if (isArray(source)) {