import XCTest
@testable import FchatiApp

final class PairingViewModelTests: XCTestCase {
    func testPairingCodeIsUppercasedAndPrefixed() {
        XCTAssertEqual(PairingViewModel.normalizedCode(from: "ab3k7q"), "FCHT-AB3K7Q")
        XCTAssertEqual(PairingViewModel.normalizedCode(from: "fcht-ab3k7q"), "FCHT-AB3K7Q")
        XCTAssertEqual(PairingViewModel.normalizedCode(from: " FCHT-ab3k7q "), "FCHT-AB3K7Q")
    }
}
