Skip to content

Commit

Permalink
Change test functions names
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Feb 21, 2024
1 parent 0b64235 commit 67cfbe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WordPressKitTests/Utilities/HTTPRequestBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HTTPRequestBuilderTests: XCTestCase {
try XCTAssertEqual(builder.query(name: "foo", value: "bar").build().url?.query, "locale=zh&foo=bar")
}

func testDefaultQueryExistsInOriginalURL() throws {
func testDefaultQueryDoesNotOverriedQueryItemInOriginalURL() throws {
let url = try HTTPRequestBuilder(url: URL(string: "https://wordpress.org/hello?locale=foo")!)
.query(defaults: [URLQueryItem(name: "locale", value: "en")])
.build()
Expand Down
4 changes: 2 additions & 2 deletions WordPressKitTests/WordPressComRestApiTests+Locale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import WordPressShared

extension WordPressComRestApiTests {

func testThatAppendingLocaleWorks() async throws {
func testAddsLocaleToURLQueryByDefault() async throws {
var request: URLRequest?
stub(condition: { _ in true }, response: {
request = $0
Expand All @@ -21,7 +21,7 @@ extension WordPressComRestApiTests {
XCTAssertEqual(request?.url?.query, "locale=\(preferredLanguageIdentifier)")
}

func testThatAppendingLocaleWorksWithExistingParams() async throws {
func testAddsLocaleToURLQueryByDefaultAndMaintainsInputParameters() async throws {
var request: URLRequest?
stub(condition: { _ in true }, response: {
request = $0
Expand Down

0 comments on commit 67cfbe2

Please sign in to comment.