Skip to content

Commit ca0c1a8

Browse files
committed
update test
1 parent c3424dc commit ca0c1a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mobile-save-for-later/src/test/scala/com/gu/sfl/controller/SaveArticlesControllerSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SaveArticlesControllerSpec extends Specification with Mockito {
1717
"SaveArticlesController" should {
1818

1919
"return a 400 when the date on an article is not in the expected format" in new Setup {
20-
val json = """{"version":"1","articles":[{"id":"id/1","shortUrl":"p/1","date":"2026-07-16T10:15:30.123Z","read":false}]}"""
20+
val json = """{"version":"1","articles":[{"id":"id/1","shortUrl":"p/1","date":"Fri Jan 01 08:00:01 GMT+08:00 2010","read":false}]}"""
2121
val response = Await.result(controller(LambdaRequest(Some(json))), Duration.Inf)
2222

2323
response.statusCode mustEqual StatusCodes.badRequest
@@ -51,4 +51,4 @@ class SaveArticlesControllerSpec extends Specification with Mockito {
5151
val updateSavedArticles = mock[UpdateSavedArticles]
5252
val controller = new SaveArticlesController(updateSavedArticles)
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)