Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziodemaria committed Apr 3, 2024
1 parent 32daa61 commit a2d2792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/ConfidenceTests/ConfidenceValueTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ final class ConfidenceConfidenceValueTests: XCTestCase {
func testEncodeDecode() throws {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
formatter.timeZone = TimeZone(abbreviation: "UTC")
let date = try XCTUnwrap(formatter.date(from: "2022-01-01 12:00:00"))
let dateComponents = DateComponents(year: 2024, month: 4, day: 3)

Expand All @@ -102,7 +103,7 @@ final class ConfidenceConfidenceValueTests: XCTestCase {
\"null\":null,
\"string\":\"value\",
\"structure\":{\"int\":5},
\"timestamp\":\"2022-01-01T11:00:00Z\"}
\"timestamp\":\"2022-01-01T12:00:00Z\"}
""".replacingOccurrences(of: "\n", with: "") // Newlines were added for readability

XCTAssertEqual(resultString, expectedString)
Expand Down

0 comments on commit a2d2792

Please sign in to comment.