//
//  GetBuildIDForBetaBuildLocalizationTests.swift
//  AppStoreConnect-Swift-SDK_Tests
//
//  Created by Pascal Edmond on 30/11/2018.
//

import XCTest
@testable import AppStoreConnect_Swift_SDK

final class GetBuildIDForBetaBuildLocalizationTests: XCTestCase {
    
    func testURLRequest() {
        let endpoint = APIEndpoint.buildID(forBetaBuildLocalizationWithId: "id")
        let request = try? endpoint.asURLRequest()
        XCTAssertEqual(request?.httpMethod, "GET")
        
        let absoluteString = request?.url?.absoluteString
        let expected = "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations/id/relationships/build"
        XCTAssertEqual(absoluteString, expected)
    }
}
