Skip to content

Commit 071142a

Browse files
committed
Rename StateTests to PublisherTests
1 parent a359439 commit 071142a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/SwiftCrossUITests/StateTests.swift renamed to Tests/SwiftCrossUITests/PublisherTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import Foundation
77
@testable import AppKitBackend
88
#endif
99

10-
@Suite("State-related tests")
11-
struct StateTests {
12-
@Test("Ensures that basic State operations can be observed")
13-
func testStateObservation() {
10+
@Suite("Publisher-related tests")
11+
struct PublisherTests {
12+
@Test("Ensures that basic Publisher operations can be observed")
13+
func testPublisherObservation() {
1414
class NestedState: SwiftCrossUI.ObservableObject {
1515
@SwiftCrossUI.Published
1616
var count = 0
@@ -65,8 +65,8 @@ struct StateTests {
6565
#if canImport(AppKitBackend)
6666
// TODO: Create mock backend so that this can be tested on all platforms. There's
6767
// nothing AppKit-specific about it.
68-
@Test("Ensure that State.observeAsUIUpdater throttles observations")
69-
func testThrottledStateObservation() async {
68+
@Test("Ensure that Publisher.observeAsUIUpdater throttles observations")
69+
func testThrottledPublisherObservation() async {
7070
class MyState: SwiftCrossUI.ObservableObject {
7171
@SwiftCrossUI.Published
7272
var count = 0

0 commit comments

Comments
 (0)