Skip to content

Commit

Permalink
Fixed MimeTypeTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliFtechiz committed Jan 2, 2024
1 parent 925c895 commit 9a94942
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil
import org.kiwix.kiwixmobile.main.KiwixMainActivity
import org.kiwix.kiwixmobile.testutils.TestUtils.closeSystemDialogs
import org.kiwix.kiwixmobile.testutils.TestUtils.isSystemUINotRespondingDialogVisible
import org.kiwix.libzim.SuggestionSearcher
import java.io.File
import java.io.FileOutputStream
import java.io.OutputStream
Expand Down Expand Up @@ -75,12 +76,15 @@ class MimeTypeTest : BaseActivityTest() {
}
}
}
val archive = Archive(zimFile.canonicalPath)
val searcher = SuggestionSearcher(archive)
val zimFileReader = ZimFileReader(
zimFile,
null,
null,
Archive(zimFile.canonicalPath),
NightModeConfig(SharedPreferenceUtil(context), context)
archive,
NightModeConfig(SharedPreferenceUtil(context), context),
searcher
)
zimFileReader.getRandomArticleUrl()?.let {
val mimeType = zimFileReader.getMimeTypeFromUrl(it)
Expand Down

0 comments on commit 9a94942

Please sign in to comment.