-
-
Save mukeshsolanki/15cd8a59d6502729ab1734231c6979a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mock the DataStore | |
val mockDataStore = mockk<DataStore<Preferences>>() | |
// Define behavior for DataStore functions | |
coEvery { mockDataStore.data } returns flowOf(mockedPreferences) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment