Last active
July 11, 2021 14:30
-
-
Save phellipealexandre/e68827ebacd64c828255f7f3c744a112 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
@Test | |
fun `Track analytics event when creating new note`() { | |
val analyticsWrapperMock = //Mock | |
val noteAnalytics = NoteAnalytics(analyticsWrapperMock) //System under test | |
noteAnalytics.trackNewNoteEvent(NoteType.Supermarket) | |
//Verifies that specific call has happened | |
verify(exactly = 1) { analyticsWrapperMock.logEvent("NewNote", "SuperMarket") } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment