diff --git a/Tests/TMDBSwiftTests/CertificationsMDBTests.swift b/Tests/TMDBSwiftTests/CertificationsMDBTests.swift index a812c8383..2735e6ee4 100644 --- a/Tests/TMDBSwiftTests/CertificationsMDBTests.swift +++ b/Tests/TMDBSwiftTests/CertificationsMDBTests.swift @@ -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) } } diff --git a/Tests/TMDBSwiftTests/ChangesMDBTests.swift b/Tests/TMDBSwiftTests/ChangesMDBTests.swift index 7c91010cb..4740bbce7 100644 --- a/Tests/TMDBSwiftTests/ChangesMDBTests.swift +++ b/Tests/TMDBSwiftTests/ChangesMDBTests.swift @@ -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) } @@ -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) } @@ -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) } diff --git a/Tests/TMDBSwiftTests/CollectionMDBTests.swift b/Tests/TMDBSwiftTests/CollectionMDBTests.swift index 63d2ffe19..8ee6fa8b9 100644 --- a/Tests/TMDBSwiftTests/CollectionMDBTests.swift +++ b/Tests/TMDBSwiftTests/CollectionMDBTests.swift @@ -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) @@ -44,7 +44,7 @@ final class CollectionMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } } diff --git a/Tests/TMDBSwiftTests/CompanyMDBTests.swift b/Tests/TMDBSwiftTests/CompanyMDBTests.swift index a52b47f68..c1cb93022 100644 --- a/Tests/TMDBSwiftTests/CompanyMDBTests.swift +++ b/Tests/TMDBSwiftTests/CompanyMDBTests.swift @@ -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) @@ -43,7 +43,7 @@ final class CompanyMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } } diff --git a/Tests/TMDBSwiftTests/ConfigurationsMDBTests.swift b/Tests/TMDBSwiftTests/ConfigurationsMDBTests.swift index 58933232c..753d6b7c8 100644 --- a/Tests/TMDBSwiftTests/ConfigurationsMDBTests.swift +++ b/Tests/TMDBSwiftTests/ConfigurationsMDBTests.swift @@ -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/") diff --git a/Tests/TMDBSwiftTests/CreditsMDBTests.swift b/Tests/TMDBSwiftTests/CreditsMDBTests.swift index aab3ca259..00e97ff31 100644 --- a/Tests/TMDBSwiftTests/CreditsMDBTests.swift +++ b/Tests/TMDBSwiftTests/CreditsMDBTests.swift @@ -22,7 +22,7 @@ final class CreditsMDBTests: XCTestCase { data = credits expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } } diff --git a/Tests/TMDBSwiftTests/DiscoverMDBTests.swift b/Tests/TMDBSwiftTests/DiscoverMDBTests.swift index fa555da0d..337f0f8e5 100644 --- a/Tests/TMDBSwiftTests/DiscoverMDBTests.swift +++ b/Tests/TMDBSwiftTests/DiscoverMDBTests.swift @@ -23,7 +23,7 @@ final class DiscoverMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(tv) } @@ -36,7 +36,7 @@ final class DiscoverMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(movie) } diff --git a/Tests/TMDBSwiftTests/FindMDBTests.swift b/Tests/TMDBSwiftTests/FindMDBTests.swift index a9551122c..fe855f05d 100644 --- a/Tests/TMDBSwiftTests/FindMDBTests.swift +++ b/Tests/TMDBSwiftTests/FindMDBTests.swift @@ -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) diff --git a/Tests/TMDBSwiftTests/GenresMDBTests.swift b/Tests/TMDBSwiftTests/GenresMDBTests.swift index dba8e2ed0..f28970093 100644 --- a/Tests/TMDBSwiftTests/GenresMDBTests.swift +++ b/Tests/TMDBSwiftTests/GenresMDBTests.swift @@ -23,7 +23,7 @@ final class GenresMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -36,7 +36,7 @@ final class GenresMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -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) } } diff --git a/Tests/TMDBSwiftTests/Helpers/ExpectationTimeout.swift b/Tests/TMDBSwiftTests/Helpers/ExpectationTimeout.swift index 3296339f3..73d56f850 100644 --- a/Tests/TMDBSwiftTests/Helpers/ExpectationTimeout.swift +++ b/Tests/TMDBSwiftTests/Helpers/ExpectationTimeout.swift @@ -7,4 +7,4 @@ import Foundation -let expecationTimeout: TimeInterval = 50 +let expectationTimeout: TimeInterval = 50 diff --git a/Tests/TMDBSwiftTests/KeywordsMDBTests.swift b/Tests/TMDBSwiftTests/KeywordsMDBTests.swift index 78b990450..8e2325c94 100644 --- a/Tests/TMDBSwiftTests/KeywordsMDBTests.swift +++ b/Tests/TMDBSwiftTests/KeywordsMDBTests.swift @@ -22,7 +22,7 @@ final class KeywordsMDBTests: XCTestCase { data = keyword expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -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) } } diff --git a/Tests/TMDBSwiftTests/ListsMDBTests.swift b/Tests/TMDBSwiftTests/ListsMDBTests.swift index ea1957fb4..a8159ad8e 100644 --- a/Tests/TMDBSwiftTests/ListsMDBTests.swift +++ b/Tests/TMDBSwiftTests/ListsMDBTests.swift @@ -23,7 +23,7 @@ final class ListsMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } diff --git a/Tests/TMDBSwiftTests/MovieMDBTests.swift b/Tests/TMDBSwiftTests/MovieMDBTests.swift index 8c028c9cf..3b1f0b9fb 100644 --- a/Tests/TMDBSwiftTests/MovieMDBTests.swift +++ b/Tests/TMDBSwiftTests/MovieMDBTests.swift @@ -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) @@ -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") @@ -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 @@ -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) @@ -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) @@ -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) @@ -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) @@ -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 @@ -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] @@ -199,7 +199,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -211,7 +211,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -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] @@ -243,7 +243,7 @@ final class MovieMDBTests: XCTestCase { data = movie expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -255,7 +255,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -267,7 +267,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -279,7 +279,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -291,7 +291,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -303,7 +303,7 @@ final class MovieMDBTests: XCTestCase { data = movies expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -315,7 +315,7 @@ final class MovieMDBTests: XCTestCase { data = translations expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } } diff --git a/Tests/TMDBSwiftTests/NetworksMDBTests.swift b/Tests/TMDBSwiftTests/NetworksMDBTests.swift index 1ed326acc..2ccadb632 100644 --- a/Tests/TMDBSwiftTests/NetworksMDBTests.swift +++ b/Tests/TMDBSwiftTests/NetworksMDBTests.swift @@ -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) } diff --git a/Tests/TMDBSwiftTests/PersonMDBTests.swift b/Tests/TMDBSwiftTests/PersonMDBTests.swift index 361a49b28..6861c1f31 100644 --- a/Tests/TMDBSwiftTests/PersonMDBTests.swift +++ b/Tests/TMDBSwiftTests/PersonMDBTests.swift @@ -23,7 +23,7 @@ final class PersonMDBTests: XCTestCase { data = person expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.adult) XCTAssertNotNil(data.also_known_as) XCTAssertNotNil(data.biography) @@ -44,7 +44,7 @@ final class PersonMDBTests: XCTestCase { data = personMovieCredits expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 19429) XCTAssertNotNil(data.crew) XCTAssertNotNil(data.cast) @@ -58,7 +58,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 19429) XCTAssertNotNil(data.crew) XCTAssertNotNil(data.cast) @@ -72,7 +72,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 19429) XCTAssertNotNil(data.movieCredits.cast) XCTAssertNotNil(data.movieCredits.crew) @@ -88,7 +88,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 9813) XCTAssertNotNil(data.movieCredits) XCTAssertNotNil(data.tvCredits) @@ -103,7 +103,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 19429) XCTAssertNotNil(data.imdb_id) XCTAssertNotNil(data.freebase_mid) @@ -119,7 +119,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.aspect_ratio) XCTAssertNotNil(data.first?.file_path) XCTAssertNotNil(data.first?.height) @@ -137,7 +137,7 @@ final class PersonMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 19429) XCTAssertNotNil(data.images.first?.file_path) XCTAssertNotNil(data.pageResults.total_pages) @@ -154,7 +154,7 @@ final class PersonMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 1223786) XCTAssertNotNil(data.images.first?.file_path) XCTAssertNotNil(data.pageResults.total_pages) @@ -170,7 +170,7 @@ final class PersonMDBTests: XCTestCase { data = person expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.id) } @@ -182,7 +182,7 @@ final class PersonMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first) } } diff --git a/Tests/TMDBSwiftTests/ReviewsMDBTests.swift b/Tests/TMDBSwiftTests/ReviewsMDBTests.swift index 3cb7ae967..505236ee9 100644 --- a/Tests/TMDBSwiftTests/ReviewsMDBTests.swift +++ b/Tests/TMDBSwiftTests/ReviewsMDBTests.swift @@ -22,7 +22,7 @@ final class ReviewsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } diff --git a/Tests/TMDBSwiftTests/SearchMDBTests.swift b/Tests/TMDBSwiftTests/SearchMDBTests.swift index d55aeaf64..a7f0440c2 100644 --- a/Tests/TMDBSwiftTests/SearchMDBTests.swift +++ b/Tests/TMDBSwiftTests/SearchMDBTests.swift @@ -22,7 +22,7 @@ final class SearchMDBTests: XCTestCase { data = collection expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } @@ -34,7 +34,7 @@ final class SearchMDBTests: XCTestCase { data = company expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } @@ -46,7 +46,7 @@ final class SearchMDBTests: XCTestCase { data = keyword expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } @@ -58,7 +58,7 @@ final class SearchMDBTests: XCTestCase { data = movie expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } @@ -74,7 +74,7 @@ final class SearchMDBTests: XCTestCase { people = person expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(movies.count, 0) XCTAssertGreaterThan(tvshows.count, 0) XCTAssertGreaterThan(people.count, 0) @@ -88,7 +88,7 @@ final class SearchMDBTests: XCTestCase { data = person expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } @@ -100,7 +100,7 @@ final class SearchMDBTests: XCTestCase { data = tvShows expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertGreaterThan(data.count, 0) } } diff --git a/Tests/TMDBSwiftTests/Services/MovieServiceTests.swift b/Tests/TMDBSwiftTests/Services/MovieServiceTests.swift index d61084821..cc4b0ce16 100644 --- a/Tests/TMDBSwiftTests/Services/MovieServiceTests.swift +++ b/Tests/TMDBSwiftTests/Services/MovieServiceTests.swift @@ -51,7 +51,7 @@ final class MovieServiceTests: XCTestCase { data = movie expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -66,7 +66,7 @@ final class MovieServiceTests: XCTestCase { data = movie expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -105,7 +105,7 @@ final class MovieServiceTests: XCTestCase { data = titles expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -120,7 +120,7 @@ final class MovieServiceTests: XCTestCase { data = titles expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -159,7 +159,7 @@ final class MovieServiceTests: XCTestCase { data = credits expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -174,7 +174,7 @@ final class MovieServiceTests: XCTestCase { data = credits expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -213,7 +213,7 @@ final class MovieServiceTests: XCTestCase { data = types expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -228,7 +228,7 @@ final class MovieServiceTests: XCTestCase { data = types expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -269,7 +269,7 @@ final class MovieServiceTests: XCTestCase { data = (backdrops, logos, posters) expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.0) XCTAssertNotNil(data.1) XCTAssertNotNil(data.2) @@ -286,7 +286,7 @@ final class MovieServiceTests: XCTestCase { data = (backdrops, logos, posters) expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data.0) XCTAssertNil(data.1) XCTAssertNil(data.2) @@ -327,7 +327,7 @@ final class MovieServiceTests: XCTestCase { data = keywords expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -342,7 +342,7 @@ final class MovieServiceTests: XCTestCase { data = keywords expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -381,7 +381,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -396,7 +396,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -435,7 +435,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -450,7 +450,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -497,7 +497,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -512,7 +512,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -555,7 +555,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) XCTAssertEqual(data?.results.count, 1) } @@ -572,7 +572,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -615,7 +615,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) XCTAssertEqual(data?.results.count, 1) } @@ -632,7 +632,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -672,7 +672,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) XCTAssertEqual(data?.count, 1) } @@ -689,7 +689,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } @@ -729,7 +729,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) XCTAssertEqual(data?.count, 1) } @@ -746,7 +746,7 @@ final class MovieServiceTests: XCTestCase { data = results expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNil(data) } } diff --git a/Tests/TMDBSwiftTests/TVEpisodesMDBTests.swift b/Tests/TMDBSwiftTests/TVEpisodesMDBTests.swift index c22d2f3c2..f5bafe7ed 100644 --- a/Tests/TMDBSwiftTests/TVEpisodesMDBTests.swift +++ b/Tests/TMDBSwiftTests/TVEpisodesMDBTests.swift @@ -22,7 +22,7 @@ final class TVEpisodesMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -34,7 +34,7 @@ final class TVEpisodesMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -46,7 +46,7 @@ final class TVEpisodesMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.stills) } @@ -58,7 +58,7 @@ final class TVEpisodesMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -70,7 +70,7 @@ final class TVEpisodesMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } } diff --git a/Tests/TMDBSwiftTests/TVMDBTests.swift b/Tests/TMDBSwiftTests/TVMDBTests.swift index 9c27428e8..1f79ff2ab 100644 --- a/Tests/TMDBSwiftTests/TVMDBTests.swift +++ b/Tests/TMDBSwiftTests/TVMDBTests.swift @@ -24,7 +24,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.first_air_date, "2011-04-17") XCTAssertEqual(data.id, 1399) XCTAssertEqual(data.original_name, "Game of Thrones") @@ -45,7 +45,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 1399) XCTAssertTrue(data.titles?.contains(where: { $0.iso_3166_1 == "DE" && $0.title == "Game of Thrones: Das Lied von Eis und Feuer" }) ?? false) } @@ -59,7 +59,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertTrue(data.count != 0) XCTAssertNotNil(data.first?.rating) XCTAssertNotNil(data.first?.iso_3166_1) @@ -74,7 +74,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertTrue(data.cast.count > 0) XCTAssertTrue(data.crew.count > 0) } @@ -88,7 +88,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 1399) XCTAssertEqual(data.imdb_id, "tt0944947") } @@ -102,7 +102,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertEqual(data.id, 1399) XCTAssertTrue(data.backdrops?.count ?? -1 > 0) XCTAssertTrue(data.posters?.count ?? -1 > 0) @@ -120,7 +120,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) XCTAssertNotNil(data.first?.name) } @@ -134,7 +134,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.poster_path) XCTAssertNotNil(data.first?.backdrop_path) XCTAssertNotNil(data.first?.first_air_date) @@ -149,7 +149,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) // XCTAssertNotNil() XCTAssertNotNil(data.first?.english_name) XCTAssertNotNil(data.first?.iso_639_1) @@ -165,7 +165,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) XCTAssertNotNil(data.first?.iso_639_1) XCTAssertNotNil(data.first?.size) @@ -181,7 +181,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.id) } @@ -194,7 +194,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } @@ -207,7 +207,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } @@ -220,7 +220,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } @@ -233,7 +233,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } @@ -246,7 +246,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } @@ -259,7 +259,7 @@ final class TVMDBTests: XCTestCase { expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.first?.id) } } diff --git a/Tests/TMDBSwiftTests/TVSeasonsMDBTests.swift b/Tests/TMDBSwiftTests/TVSeasonsMDBTests.swift index fd95f018a..34a87839d 100644 --- a/Tests/TMDBSwiftTests/TVSeasonsMDBTests.swift +++ b/Tests/TMDBSwiftTests/TVSeasonsMDBTests.swift @@ -22,7 +22,7 @@ final class TVSeasonsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -34,7 +34,7 @@ final class TVSeasonsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -46,7 +46,7 @@ final class TVSeasonsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data.posters) } @@ -58,7 +58,7 @@ final class TVSeasonsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -70,7 +70,7 @@ final class TVSeasonsMDBTests: XCTestCase { data = responseData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } } diff --git a/Tests/TMDBSwiftTests/TrendingMDBTests.swift b/Tests/TMDBSwiftTests/TrendingMDBTests.swift index 0ddf939dc..b469da1d9 100644 --- a/Tests/TMDBSwiftTests/TrendingMDBTests.swift +++ b/Tests/TMDBSwiftTests/TrendingMDBTests.swift @@ -22,7 +22,7 @@ final class TrendingMDBTests: XCTestCase { data = tvData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -34,7 +34,7 @@ final class TrendingMDBTests: XCTestCase { data = tvData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -46,7 +46,7 @@ final class TrendingMDBTests: XCTestCase { data = movieData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } @@ -58,7 +58,7 @@ final class TrendingMDBTests: XCTestCase { data = movieData expectation.fulfill() } - waitForExpectations(timeout: expecationTimeout, handler: nil) + waitForExpectations(timeout: expectationTimeout, handler: nil) XCTAssertNotNil(data) } }