Skip to content

Commit

Permalink
Make assertion based on third party spec work regardless of parameter…
Browse files Browse the repository at this point in the history
… order.
  • Loading branch information
mattpolzin committed Aug 15, 2020
1 parent 8aa68ed commit 26a5a2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/OpenAPIKitCompatibilitySuite/GoogleBooksAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ final class GoogleBooksAPICampatibilityTests: XCTestCase {

XCTAssertNotNil(addBooksParameters)
XCTAssertEqual(addBooksParameters?.count, 11)
XCTAssertEqual(addBooksParameters?.first?.description, "JSONP")
XCTAssertEqual(addBooksParameters?.first?.context, .query)
XCTAssert(addBooksParameters?.contains { $0.description == "JSONP" && $0.context == .query } ?? false)
}

func test_dereferencedComponents() throws {
Expand Down

0 comments on commit 26a5a2e

Please sign in to comment.