This adds the first screen for badge gifting. It lets you see the gift badge, pick the currency, and advance to the next screen. It also adds a skeleton for the next screen, so there's somewhere to advance to, but that screen is unfinished. All of this is behind disabled flags, so this should have no user impact.
16 lines
454 B
Swift
16 lines
454 B
Swift
//
|
|
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
import SignalServiceKit
|
|
|
|
class OWSRequestFactoryTest: XCTestCase {
|
|
func testGiftBadgePricesRequest() throws {
|
|
let request = OWSRequestFactory.giftBadgePricesRequest()
|
|
XCTAssertEqual(request.url?.path, "v1/subscription/boost/amounts/gift")
|
|
XCTAssertEqual(request.httpMethod, "GET")
|
|
XCTAssertTrue(request.parameters.isEmpty)
|
|
}
|
|
}
|