Skip to content

Commit

Permalink
Fikse test
Browse files Browse the repository at this point in the history
  • Loading branch information
s148719 committed Dec 5, 2024
1 parent 638c7f7 commit d36f5ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@ class Dtomapper(
this.søknadsbarn.first(),
)

try {
val t1 = beregnBarnebidragApi.beregnNettoTilsynsutgiftOgUnderholdskostnad(grunnlag)
val t2 = t1.finnAlleDelberegningUnderholdskostnad()
val t3 = t2.tilUnderholdskostnadDto()
} catch (e: Exception) {
e.printStackTrace()
}

return beregnBarnebidragApi
.beregnNettoTilsynsutgiftOgUnderholdskostnad(grunnlag)
.finnAlleDelberegningUnderholdskostnad()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ class DtoMapperTest : TestContainerRunner() {
LocalDate.now().minusMonths(6).minusDays(1),
)
tilsynstype shouldBe null
skolealder shouldBe null
skolealder shouldBe Skolealder.UNDER
kilde shouldBe Kilde.OFFENTLIG
}

assertSoftly(nyttBarnetilsyn.elementAt(1)) {
skolealder shouldBe Skolealder.OVER
skolealder shouldBe Skolealder.UNDER
tilsynstype shouldBe Tilsynstype.HELTID
periode shouldBe
DatoperiodeDto(
Expand All @@ -327,7 +327,7 @@ class DtoMapperTest : TestContainerRunner() {
}

assertSoftly(nyttBarnetilsyn.elementAt(2)) {
skolealder shouldBe null
skolealder shouldBe Skolealder.UNDER
tilsynstype shouldBe null
periode shouldBe DatoperiodeDto(LocalDate.now().minusMonths(4), null)
kilde shouldBe Kilde.OFFENTLIG
Expand Down

0 comments on commit d36f5ea

Please sign in to comment.