You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2015/10/15 18:22:34 UTC

[2/2] cordova-plugin-file-transfer git commit: CB-9385 Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS

CB-9385 Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS

Added a corresponding test case


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/83ee6251
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/83ee6251
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/83ee6251

Branch: refs/heads/master
Commit: 83ee62514a26ab657935bbdb091d4f709a2589d7
Parents: c0b3122
Author: daserge <v-...@microsoft.com>
Authored: Thu Oct 15 19:17:27 2015 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Thu Oct 15 19:17:27 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/83ee6251/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 364f715..94ac89e 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -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();
                     };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org