mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
CB-9385 Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS
Added a corresponding test case
This commit is contained in:
@@ -501,6 +501,7 @@ exports.defineAutoTests = function () {
|
||||
|
||||
expect(error.http_status).not.toBe(401, "Ensure " + fileURL + " is in the white list");
|
||||
expect(error.http_status).toBe(404);
|
||||
expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
|
||||
|
||||
done();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user