Skip to content

Commit

Permalink
Merge pull request #770 from DeluxeAlonso/feature/unit-tests
Browse files Browse the repository at this point in the history
Feature/unit tests
  • Loading branch information
DeluxeAlonso authored Aug 27, 2023
2 parents f9b477b + 4929d44 commit 824b3d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ final class ConfigurationClient: APIClient, ConfigurationClientProtocol {
convenience init() {
let configuration: URLSessionConfiguration = .default
configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
let session = URLSession(configuration: configuration)

self.init(session: URLSession(configuration: configuration))
self.init(session: session)
}

// MARK: - ConfigurationClientProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ final class GenreClient: APIClient, GenreClientProtocol {
convenience init() {
let configuration: URLSessionConfiguration = .default
configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
let session = URLSession(configuration: configuration)

self.init(session: URLSession(configuration: configuration))
self.init(session: session)
}

// MARK: - GenreClientProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ final class MovieClient: APIClient, MovieClientProtocol {
convenience init() {
let configuration: URLSessionConfiguration = .default
configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
let session = URLSession(configuration: configuration)

self.init(session: URLSession(configuration: configuration))
self.init(session: session)
}

// MARK: - Movie list
Expand Down

0 comments on commit 824b3d8

Please sign in to comment.