Skip to content

Commit

Permalink
fix(test): fix order of encoded JSON body fields (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Aug 29, 2024
1 parent 447bd69 commit d6f5fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/PostieTests/RequestBodyCodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class RequestBodyCodingTests: XCTestCase {
XCTFail("Failed to encode: " + error.localizedDescription)
return
}
XCTAssertEqual(encoded.httpBody, #"{"someValue":123,"someOtherValue":"Bar"}"#.data(using: .utf8)!)
XCTAssertEqual(encoded.httpBody, #"{"someOtherValue":"Bar","someValue":123}"#.data(using: .utf8)!)
XCTAssertEqual(encoded.value(forHTTPHeaderField: "Content-Type"), "application/json")
}

Expand Down

0 comments on commit d6f5fed

Please sign in to comment.