mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-09 00:55:52 -06:00
20 lines
504 B
Swift
20 lines
504 B
Swift
@testable import Shared
|
|
import SharedTesting
|
|
import SwiftUI
|
|
import Testing
|
|
|
|
struct ExternalLinkButtonTests {
|
|
@MainActor
|
|
@Test func testExternalLinkButton() async throws {
|
|
let view = ExternalLinkButton(
|
|
icon: Image(systemSymbol: .heart),
|
|
title: "This is a title",
|
|
url: URL(string: "https://google.com")!,
|
|
tint: .blue,
|
|
background: Color(uiColor: .secondarySystemFill)
|
|
)
|
|
|
|
assertLightDarkSnapshots(of: view)
|
|
}
|
|
}
|