From 949b0d5c2c09e7e3dff95be0a8520321871a03a0 Mon Sep 17 00:00:00 2001 From: Zandor Smith Date: Mon, 15 Jan 2024 18:54:14 +0100 Subject: [PATCH] Implement unit tests for Apple Watch platform. (#365) --- .github/workflows/main.yml | 1 + Tests/Tests.swift | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a84daa95..1ecb0d45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,7 @@ jobs: - platform=iOS Simulator,name=iPhone SE (2nd generation) - platform=tvOS Simulator,name=Apple TV - platform=tvOS Simulator,name=Apple TV 4K (3rd generation) + - platform=watchOS Simulator,name=Apple Watch Series 8 (45mm) steps: - uses: actions/checkout@v2 diff --git a/Tests/Tests.swift b/Tests/Tests.swift index 9e0e4dbc..eebfb775 100644 --- a/Tests/Tests.swift +++ b/Tests/Tests.swift @@ -29,7 +29,8 @@ class DeviceKitTests: XCTestCase { XCTAssertTrue(device.description.contains("iPhone") || device.description.contains("iPad") || device.description.contains("iPod") - || device.description.contains("TV")) + || device.description.contains("TV") + || device.description.contains("Apple Watch")) } func testIsCanvas() {