Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

fix: make RouteTests more lenient on index content #427

Merged
merged 1 commit into from
Jan 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion refresh/templates/common/RouteTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class RouteTests: XCTestCase {
.sendForTestingWithKitura { data, statusCode in
if let getResult = String(data: data, encoding: String.Encoding.utf8){
XCTAssertEqual(statusCode, 200)
XCTAssertTrue(getResult.contains("<html>"))
XCTAssertTrue(getResult.contains("<html"))
XCTAssertTrue(getResult.contains("</html>"))
} else {
XCTFail("Return value from / was nil!")
Expand Down