Skip to content

Commit f3a4b8a

Browse files
FredericRuaudelMihaelIsaev
authored andcommitted
Add sendMessage to the FCMProvider protocol
so it can be mocked in tests (#13)
1 parent ef0adeb commit f3a4b8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/FCM/FCM.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import Crypto
55

66
// MARK: Service
77

8-
public protocol FCMProvider: Service {}
8+
public protocol FCMProvider: Service {
9+
func sendMessage(_ client: Client, message: FCMMessageDefault) throws -> Future<String>
10+
}
911

1012
// MARK: Engine
1113

0 commit comments

Comments
 (0)