forked from Ivasoft/mattermost-mobile
* Get extension from Content-Disposition first * User ImageCacheManager.cache over getCacheFile * Add unit tests for ImageCacheManager.getCacheFile * Add unit tests for ImageCacheManager.cache * Use exports and require to be able to mock isDownloading * Chain mockReturnValueOnce calls * Fix getExtensionFromContentDisposition and its unit tests