This PR contains a bugfix that appeared while I started working on the app itself. Basically, the app was not building as the compiler was complaining about duplicated files in the project, but given that I couldn't find any, then I found out that the compiler doesn't like that a library name and an app target share the same name. So I renamed the `Locations` library in the **Libraries** package as `Remote` (for the lack of a better word...) to fix this issue that was stopping me from continue working on implementing the app. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: rock-n-code/deep-linking-assignment#8
33 lines
746 B
Swift
33 lines
746 B
Swift
//
|
|
// GetLocationsEndpointTests.swift
|
|
// LocationsTests
|
|
//
|
|
// Created by Javier Cicchelli on 10/04/2023.
|
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
|
|
@testable import Locations
|
|
|
|
final class GetLocationsEndpointTests: XCTestCase {
|
|
|
|
// MARK: Tests
|
|
|
|
func test_init() {
|
|
// GIVEN
|
|
// WHEN
|
|
let endpoint = GetLocationsEndpoint()
|
|
|
|
// THEN
|
|
XCTAssertNotNil(endpoint)
|
|
XCTAssertEqual(endpoint.scheme, .Scheme.https)
|
|
XCTAssertEqual(endpoint.host, .Hosts.default)
|
|
XCTAssertNil(endpoint.port)
|
|
XCTAssertEqual(endpoint.path, .Paths.getLocations)
|
|
XCTAssertTrue(endpoint.headers.isEmpty)
|
|
XCTAssertNil(endpoint.body)
|
|
}
|
|
|
|
}
|