Skip to content

Commit

Permalink
IS-2720: Ktor 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Jan 2, 2025
1 parent b345e3c commit cedd7cf
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import no.nav.syfo.personstatus.db.getPersonOversiktStatusList
import no.nav.syfo.personstatus.domain.Initials
import no.nav.syfo.personstatus.domain.PersonIdent
import no.nav.syfo.personstatus.domain.PersonOversiktStatus
import no.nav.syfo.personstatus.domain.SearchQuery
import no.nav.syfo.personstatus.domain.Search
import no.nav.syfo.personstatus.infrastructure.database.repository.PersonOversiktStatusRepository
import no.nav.syfo.testutil.ExternalMockEnvironment
import no.nav.syfo.testutil.UserConstants
Expand Down Expand Up @@ -227,11 +227,9 @@ class PersonOversiktStatusRepositorySpek : Spek({
val fodselsdato = LocalDate.of(1985, Month.MAY, 17)

fun searchPerson(initials: String, birthdate: LocalDate): List<PersonOversiktStatus> {
val searchQuery = SearchQuery(
initials = Initials(initials),
birthdate = birthdate
return personOversiktStatusRepository.searchPerson(
search = Search.ByInitialsAndDate(Initials(initials), birthdate)
)
return personOversiktStatusRepository.searchPerson(searchQuery)
}

it("finds relevant sykmeldt person when searching with correct initials and birthdate") {
Expand Down

0 comments on commit cedd7cf

Please sign in to comment.