Skip to content

Commit

Permalink
Small formatting fixes around XmppClient (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Sep 8, 2019
1 parent 98d75bc commit 306dbba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Emulsion.Tests/Xmpp/XmppClientTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ let ``connect function calls the Connect method of the client passed``(): unit =
Assert.True connectCalled

[<Fact>]
let ``connect function returns a lifetime terminated whenever the ConnectionFailed callback is triggered``()
: unit =
let ``connect function returns a lifetime terminated whenever the ConnectionFailed callback is triggered``(): unit =
let mutable callback = ignore
let client = XmppClientFactory.create(addConnectionFailedHandler = fun _ h -> callback <- h)
let lt = Async.RunSynchronously <| XmppClient.connect client
Expand All @@ -77,7 +76,7 @@ let ``connect function returns a lifetime terminated whenever the ConnectionFail
Assert.False lt.IsAlive

[<Fact>]
let ``enter function calls JoinMultiUserChat``(): unit =
let ``enterRoom function calls JoinMultiUserChat``(): unit =
let mutable called = false
let mutable presenceHandlers = ResizeArray()
let client =
Expand All @@ -94,7 +93,7 @@ let ``enter function calls JoinMultiUserChat``(): unit =
)

[<Fact>]
let ``enter throws an exception in case of an error presence``(): unit =
let ``enterRoom throws an exception in case of an error presence``(): unit =
let mutable presenceHandlers = ResizeArray()
let client =
XmppClientFactory.create(
Expand All @@ -112,7 +111,7 @@ let ``enter throws an exception in case of an error presence``(): unit =
)

[<Fact>]
let ``Lifetime returned from enter terminates by a room leave presence``(): unit =
let ``Lifetime returned from enterRoom terminates by a room leave presence``(): unit =
let mutable presenceHandlers = ResizeArray()
let client =
XmppClientFactory.create(
Expand All @@ -129,7 +128,7 @@ let ``Lifetime returned from enter terminates by a room leave presence``(): unit
)

[<Fact>]
let ``Lifetime returned from enter terminates by an external lifetime termination``(): unit =
let ``Lifetime returned from enterRoom terminates by an external lifetime termination``(): unit =
let mutable presenceHandlers = ResizeArray()
let client =
XmppClientFactory.create(
Expand Down
1 change: 0 additions & 1 deletion Emulsion/Xmpp/XmppClient.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Emulsion.Xmpp.XmppClient
open System

open JetBrains.Lifetimes
open Serilog

open SharpXMPP
open SharpXMPP.XMPP
Expand Down

0 comments on commit 306dbba

Please sign in to comment.