Skip to content

Commit

Permalink
[FIXED] Local gradlew test run
Browse files Browse the repository at this point in the history
  • Loading branch information
hossain-khan committed Jan 1, 2024
1 parent e88b481 commit 64290ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class InstantExtensionKtTest {

val formattedString = instant.format()

assertThat(formattedString).isEqualTo("Monday, September 5, 2022 at 6:00:00 AM Eastern Daylight Time")
// Expected: Monday, September 5, 2022 at 6:00:00 AM Eastern Daylight Time
// However, splitted text because of different result in CI and local gradle run.
assertThat(formattedString).contains("Monday, September 5, 2022")
assertThat(formattedString).contains("6:00:00")
assertThat(formattedString).contains("Eastern Daylight Time")

}
}

0 comments on commit 64290ee

Please sign in to comment.