Skip to content

Commit

Permalink
Fix MockServer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jan 11, 2023
1 parent 7bea600 commit 9293fd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/ChimeHQ/JSONRPC",
"state": {
"branch": null,
"revision": "e0a30db87e70d31c821f99b9699c0bef61748aac",
"version": "0.6.1"
"revision": "afc20d00e38674774f84edc325424a32ae3b9e01",
"version": "0.7.0"
}
}
]
Expand Down
7 changes: 4 additions & 3 deletions Tests/LanguageServerProtocolTests/ServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import JSONRPC
@testable import LanguageServerProtocol

class MockServer: Server {
var requestHandler: RequestHandler?
var notificationHandler: NotificationHandler?

var responseData: Data?

func setHandlers(_ handlers: LanguageServerProtocol.ServerHandlers, completionHandler: @escaping (ServerError?) -> Void) {
completionHandler(nil)
}

func sendNotification(_ notif: ClientNotification, completionHandler: @escaping (ServerError?) -> Void) {
completionHandler(.missingExpectedParameter)
}
Expand Down

0 comments on commit 9293fd8

Please sign in to comment.