File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed
main/kotlin/no/nav/tms/varsel/api/varsel
test/kotlin/no/nav/tms/varsel/api/varsel Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ data class Varsel(
26
26
isMasked = isMasked,
27
27
spraakkode = varsel.innhold?.spraakkode,
28
28
tekst = varsel.innhold?.tekst,
29
- link = if (isInaktivertOppgave) null else varsel.innhold?.link,
29
+ link = varsel.innhold?.link,
30
30
eksternVarslingSendt = varsel.eksternVarslingSendt,
31
31
eksternVarslingKanaler = varsel.eksternVarslingKanaler,
32
32
type = if (varsel.type == VarselType .oppgave) VarselType .oppgave else VarselType .beskjed,
Original file line number Diff line number Diff line change @@ -70,31 +70,6 @@ class AlleVarslerTest {
70
70
}
71
71
}
72
72
73
- @Test
74
- fun `Ikke sende med lenke på inaktive oppgaver` () {
75
- val incomingVarselList = listOf (
76
- AlleVarslerTestData .incomingVarsel(type = VarselType .beskjed),
77
- AlleVarslerTestData .incomingVarsel(type = VarselType .innboks),
78
- AlleVarslerTestData .incomingVarsel(type = VarselType .oppgave),
79
- AlleVarslerTestData .incomingVarsel(type = VarselType .oppgave, aktiv = false ),
80
- AlleVarslerTestData .incomingVarsel(type = VarselType .beskjed, aktiv = false ),
81
- AlleVarslerTestData .incomingVarsel(type = VarselType .innboks, aktiv = false )
82
- )
83
-
84
- AlleVarsler .fromVarsler(incomingVarselList).apply {
85
- aktive.oppgaver[0 ].link shouldBe " www.nav.no/test"
86
- aktive.beskjeder.forEach() {
87
- it.link shouldBe " www.nav.no/test"
88
- }
89
- inaktive.forEach() {
90
- if (it.type == VarselType .oppgave) {
91
- it.link shouldBe null
92
- } else {
93
- it.link shouldBe " www.nav.no/test"
94
- }
95
- }
96
73
97
- }
98
- }
99
74
100
75
}
You can’t perform that action at this time.
0 commit comments