Skip to content

Commit

Permalink
ProjectsRepository Tests
Browse files Browse the repository at this point in the history
createUserData
  • Loading branch information
Wavesonics committed Jul 1, 2024
1 parent 2d4e1ab commit 98399d4
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.darkrockstudios.apps.hammer.projects.repository

import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.verify
import kotlinx.coroutines.test.runTest
import kotlin.test.Test

class ProjectsRepositoryCreateUserDataTest : ProjectsRepositoryBaseTest() {

@Test
fun `Create User Data`() = runTest {

every { projectsDatasource.createUserData(userId) } just Runs

createProjectsRepository().apply {
createUserData(userId)
verify { projectsDatasource.createUserData(userId) }
}
}
}

0 comments on commit 98399d4

Please sign in to comment.