Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Mar 15, 2023
1 parent 855120f commit 823e6c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nio-server/test/controllers/ConsentControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,11 @@ class ConsentControllerSpec extends TestUtils {

println(patchResponse.json)
patchResponse.status mustBe OK

val expectedDate: DateTime = (patchResponse.json \ "lastUpdate").validate(DateUtils.utcDateTimeReads).get
patchResponse.json mustBe user1.copy(
orgKey = Some("maif"),
lastUpdate = expectedDate,
groups = user1.groups.updated(0, user1.groups(0).copy(
consents = user1.groups(0).consents.updated(0, user1.groups(0).consents(0).copy(checked = false))
))
Expand Down

0 comments on commit 823e6c7

Please sign in to comment.