Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in test suite #110

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
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 Tests/TMDBSwiftTests/CertificationsMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class CertificationsMDBTests: XCTestCase {
data = responseData
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data.US)
}
}
6 changes: 3 additions & 3 deletions Tests/TMDBSwiftTests/ChangesMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ChangesMDBTests: XCTestCase {
data = responseData
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertGreaterThan(data.count, 0)
}

Expand All @@ -35,7 +35,7 @@ final class ChangesMDBTests: XCTestCase {
data = responseData
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertGreaterThan(data.count, 0)
}

Expand All @@ -47,7 +47,7 @@ final class ChangesMDBTests: XCTestCase {
data = responseData
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data[0].id)
XCTAssertNotNil(data[0].adult)
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/TMDBSwiftTests/CollectionMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class CollectionMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)

XCTAssertEqual(data?.id, 10)
Expand All @@ -44,7 +44,7 @@ final class CollectionMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}
}
4 changes: 2 additions & 2 deletions Tests/TMDBSwiftTests/CompanyMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class CompanyMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)

XCTAssertEqual(data?.id, 5)
Expand All @@ -43,7 +43,7 @@ final class CompanyMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertGreaterThan(data.count, 0)
}
}
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/ConfigurationsMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ConfigurationsMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
XCTAssertGreaterThan(data?.backdrop_sizes?.count ?? 0, 0)
XCTAssertEqual(data?.base_url, "http://image.tmdb.org/t/p/")
Expand Down
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/CreditsMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class CreditsMDBTests: XCTestCase {
data = credits
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}
}
4 changes: 2 additions & 2 deletions Tests/TMDBSwiftTests/DiscoverMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class DiscoverMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(tv)
}

Expand All @@ -36,7 +36,7 @@ final class DiscoverMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(movie)
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/FindMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class FindMDBTests: XCTestCase {
expectation.fulfill()
})

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
guard let findData = data else { return }
XCTAssertNotNil(findData.person_results)
Expand Down
6 changes: 3 additions & 3 deletions Tests/TMDBSwiftTests/GenresMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class GenresMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -36,7 +36,7 @@ final class GenresMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -49,7 +49,7 @@ final class GenresMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertGreaterThan(data?.count ?? 0, 0)
}
}
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/Helpers/ExpectationTimeout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

import Foundation

let expecationTimeout: TimeInterval = 50
let expectationTimeout: TimeInterval = 50
4 changes: 2 additions & 2 deletions Tests/TMDBSwiftTests/KeywordsMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class KeywordsMDBTests: XCTestCase {
data = keyword
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -34,7 +34,7 @@ final class KeywordsMDBTests: XCTestCase {
data = movie
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertGreaterThan(data.count, 0)
}
}
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/ListsMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ListsMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand Down
38 changes: 19 additions & 19 deletions Tests/TMDBSwiftTests/MovieMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class MovieMDBTests: XCTestCase {
data = movie
expectation.fulfill()
})
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data[0])
XCTAssertNotNil(data[0].title)
XCTAssertNotNil(data[0].overview)
Expand All @@ -39,7 +39,7 @@ final class MovieMDBTests: XCTestCase {
data = movie
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
XCTAssertEqual(data?.title, "In the Name of the Father")

Expand All @@ -53,7 +53,7 @@ final class MovieMDBTests: XCTestCase {
data = titles
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
let french = data?.titles?.filter { $0.iso_3166_1 == "FR" }.first

Expand All @@ -70,7 +70,7 @@ final class MovieMDBTests: XCTestCase {
data = creds
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data?.cast)
XCTAssertNotNil(data?.crew)

Expand Down Expand Up @@ -101,7 +101,7 @@ final class MovieMDBTests: XCTestCase {
data = imgs
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
XCTAssertNotNil(data?.backdrops)
XCTAssertNotNil(data?.posters)
Expand All @@ -127,7 +127,7 @@ final class MovieMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
XCTAssertEqual(data?[0].name, "human evolution")
XCTAssertEqual(data?[0].id, 311)
Expand All @@ -143,7 +143,7 @@ final class MovieMDBTests: XCTestCase {
data = dates
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
let dates = data?[0].release_dates[0]
XCTAssertNotNil(data?[0].iso_3166_1)
Expand All @@ -159,7 +159,7 @@ final class MovieMDBTests: XCTestCase {
data = vids
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)

let planetOfTheApes = data?.filter { $0.id == "533ec657c3a3685448000678" }.first
Expand All @@ -180,7 +180,7 @@ final class MovieMDBTests: XCTestCase {
data = lists
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)

let list = data?[0]
Expand All @@ -199,7 +199,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -211,7 +211,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -224,7 +224,7 @@ final class MovieMDBTests: XCTestCase {
data = reviews
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
let review = data?[0]

Expand All @@ -243,7 +243,7 @@ final class MovieMDBTests: XCTestCase {
data = movie
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -255,7 +255,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -267,7 +267,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -279,7 +279,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -291,7 +291,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -303,7 +303,7 @@ final class MovieMDBTests: XCTestCase {
data = movies
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}

Expand All @@ -315,7 +315,7 @@ final class MovieMDBTests: XCTestCase {
data = translations
expectation.fulfill()
}
waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertNotNil(data)
}
}
2 changes: 1 addition & 1 deletion Tests/TMDBSwiftTests/NetworksMDBTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class NetworksMDBTests: XCTestCase {
expectation.fulfill()
}

waitForExpectations(timeout: expecationTimeout, handler: nil)
waitForExpectations(timeout: expectationTimeout, handler: nil)
XCTAssertEqual(data?.name, "Fuji TV")
XCTAssertEqual(data?.id, 1.0)
}
Expand Down
Loading
Loading