Skip to content

Commit

Permalink
MicroHTTPKit: Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Mar 6, 2024
1 parent 1451413 commit 0da7238
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libraries/MicroHTTPKit/Tests/routing.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@ - (void)testMiddleware {
XCTAssertEqualObjects([response objectForKey:@"queryParameters"], @{@"foo" : @"bar"},
@"Query parameters are foo=bar");
XCTAssertGreaterThan([[response objectForKey:@"headers"] count], 0, @"Headers are not empty");
XCTAssertEqualObjects([[response objectForKey:@"headers"] objectForKey:@"Accept"],
XCTAssertEqualObjects([[response objectForKey:@"headers"] objectForKey:@"accept"],
@"application/json", @"Accept header is application/json");
XCTAssertNil([[response objectForKey:@"headers"] objectForKey:@"Accept"],
@"HTTP Header Keys are lowercase after processing");

[server stop];
}
Expand Down

0 comments on commit 0da7238

Please sign in to comment.