mana-swift-ui/Tests/ManaAuthUITests/ManaBrandConfigTests.swift
Till JS 6d087e75ab mana statt »e.V.«: Schweizer Verein (kein Store-Release, nur Quelltext-Korrektur)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 20:32:31 +02:00

35 lines
1.1 KiB
Swift

import SwiftUI
import Testing
@testable import ManaAuthUI
@Suite("ManaBrandConfig")
struct ManaBrandConfigTests {
@Test("systemDefault setzt sinnvolle Defaults")
func systemDefaultDefaults() {
let config = ManaBrandConfig.systemDefault
#expect(config.appName == "mana")
#expect(config.tagline == nil)
#expect(config.logoSymbol == nil)
}
@Test("Apps können ein eigenes Brand-Config bauen")
func customConfig() {
let cardecky = ManaBrandConfig(
appName: "Cardecky",
tagline: "Karteikarten des Vereins mana",
logoSymbol: "rectangle.stack.fill",
background: .white,
foreground: .black,
surface: .gray,
mutedForeground: .gray,
border: .gray,
primary: .green,
primaryForeground: .white,
error: .red,
success: .green
)
#expect(cardecky.appName == "Cardecky")
#expect(cardecky.tagline == "Karteikarten des Vereins mana")
#expect(cardecky.logoSymbol == "rectangle.stack.fill")
}
}