Skip to content
Permalink
Browse files
Don't check the error type in the badUrl filetransfer test.
Just verify that the error callback is called.
  • Loading branch information
agrieve committed Jul 10, 2013
1 parent 39a6f2f commit 7cc276a2549706fe95ca949278c7c3c6d9034bea
Showing 1 changed file with 1 addition and 3 deletions.
@@ -380,9 +380,7 @@ describe('FileTransfer', function() {

var remoteFile = server;
var badFilePath = "c:\\54321";
var downloadFail = jasmine.createSpy().andCallFake(function(error) {
expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
});
var downloadFail = jasmine.createSpy();

runs(function() {
var ft = new FileTransfer();

0 comments on commit 7cc276a

Please sign in to comment.