Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Jul 7, 2024
1 parent 9355a8f commit 3873354
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class GetReleasedDataEndpointTest(
"groupName" to TextNode(DEFAULT_GROUP_NAME),
"versionStatus" to TextNode("LATEST_VERSION"),
"dataUseTerms" to TextNode("OPEN"),
"releasedDate" to TextNode(Clock.System.todayAt(TimeZone.UTC).toString()),
"releasedDate" to TextNode(Clock.System.now().toLocalDateTime(TimeZone.UTC).date.toString()),
"submittedDate" to TextNode(Clock.System.now().toLocalDateTime(TimeZone.UTC).date.toString()),
"dataUseTermsRestrictedUntil" to NullNode.getInstance(),
"booleanColumn" to BooleanNode.TRUE,
)
Expand Down Expand Up @@ -209,7 +210,7 @@ class GetReleasedDataEndpointTest(
"groupId" -> assertThat(value.intValue(), `is`(greaterThan(0)))
"accession", "version", "accessionVersion", "submissionId" -> {}
"dataUseTerms" -> assertThat(value, `is`(TextNode("OPEN")))
"submittedDate" -> assertThat(value, `is`(TextNode(Clock.System.todayAt(TimeZone.UTC).toString())))
"submittedDate" to TextNode(Clock.System.now().toLocalDateTime(TimeZone.UTC).date.toString()),
else -> assertThat("value for $key", value, `is`(NullNode.instance))
}
}
Expand Down

0 comments on commit 3873354

Please sign in to comment.