Skip to content

Commit

Permalink
Add sendMessage to the FCMProvider protocol
Browse files Browse the repository at this point in the history
so it can be mocked in tests (#13)
  • Loading branch information
FredericRuaudel authored and MihaelIsaev committed Nov 27, 2019
1 parent ef0adeb commit f3a4b8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/FCM/FCM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import Crypto

// MARK: Service

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

// MARK: Engine

Expand Down

0 comments on commit f3a4b8a

Please sign in to comment.