blob: 3f63ef16fe9f32e261bbb1a91e5cc0e73124a6fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import XCTest
import SwiftUI
import UIKit
@testable import Makima
final class SmokeTests: XCTestCase {
func testPaletteBackgroundNotTransparent() throws {
// Basic sanity: the color resolves on iOS
let cg = UIColor(Palette.background).cgColor
XCTAssertNotNil(cg.components)
}
func testWebSocketStatusLabels() {
XCTAssertEqual(WebSocketStatus.idle.label, "WS//IDLE")
XCTAssertEqual(WebSocketStatus.online.label, "WS//ONLINE")
XCTAssertEqual(WebSocketStatus.offline.label, "WS//OFFLINE")
}
}
|