Skip to content

Commit 73d6aca

Browse files
[MG] jsoup dependency update (#30)
1 parent 01780bd commit 73d6aca

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

project/AppDependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object AppDependencies {
2323

2424
val test: Seq[ModuleID] = Seq[ModuleID](
2525
"uk.gov.hmrc" %% "bootstrap-test-play-30" % bootstrapVersion,
26-
"org.jsoup" % "jsoup" % "1.19.1"
26+
"org.jsoup" % "jsoup" % "1.20.1"
2727
).map( _ % Test )
2828

2929
val it: Seq[ModuleID] = Seq.empty[ModuleID]

test/uk/gov/hmrc/cardpaymentfrontend/controllers/PaymentCompleteControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class PaymentCompleteControllerSpec extends ItSpec {
9292
val document = Jsoup.parse(contentAsString(result))
9393
val panel = document.body().select(".govuk-panel--confirmation")
9494
panel.select("h1").text() shouldBe "Payment received by HMRC"
95-
panel.select(".govuk-panel__body").html() shouldBe "Your payment reference\n<br><strong>1234567895K</strong>"
95+
panel.select(".govuk-panel__body").html() shouldBe "Your payment reference\n<br>\n<strong>1234567895K</strong>"
9696
}
9797

9898
"render the h1 panel correctly in welsh" in {
@@ -101,7 +101,7 @@ class PaymentCompleteControllerSpec extends ItSpec {
101101
val document = Jsoup.parse(contentAsString(result))
102102
val panel = document.body().select(".govuk-panel--confirmation")
103103
panel.select("h1").text() shouldBe "Taliad wedi dod i law CThEM"
104-
panel.select(".govuk-panel__body").html() shouldBe "Eich cyfeirnod talu\n<br><strong>1234567895K</strong>"
104+
panel.select(".govuk-panel__body").html() shouldBe "Eich cyfeirnod talu\n<br>\n<strong>1234567895K</strong>"
105105
}
106106

107107
"render paragraph about email address when email is provided" in {

test/uk/gov/hmrc/cardpaymentfrontend/services/CardPaymentServiceSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CardPaymentServiceSpec extends ItSpec {
4141
val testEmail = EmailAddress("some@email.com")
4242

4343
"CardPaymentService" - {
44+
4445
"initiatePayment" - {
4546

4647
val cardPaymentInitiatePaymentRequest = CardPaymentInitiatePaymentRequest("http://localhost/pay-by-card/return-to-hmrc", "SAEE", "1234567895K", AmountInPence(1234), Address("made up street", postCode = "AA11AA", countryCode = "GBR"), Some(EmailAddress("some@email.com")))

test/uk/gov/hmrc/cardpaymentfrontend/testsupport/ItSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trait ItSpec extends AnyFreeSpecLike
6565

6666
object TestServerFactory extends DefaultTestServerFactory {
6767
override protected def serverConfig(app: Application): ServerConfig = {
68-
val sc: ServerConfig = ServerConfig(port = Some(testServerPort), sslPort = Some(0), mode = Mode.Test, rootDir = app.path)
68+
val sc: ServerConfig = ServerConfig(port = Some(testServerPort), sslPort = None, mode = Mode.Test, rootDir = app.path)
6969
sc.copy(configuration = sc.configuration.withFallback(overrideServerConfiguration(app)))
7070
}
7171
}

0 commit comments

Comments
 (0)