mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
Merge branch 'master' into master-ghc8107
This commit is contained in:
@@ -1391,10 +1391,16 @@ testXFTPMarkToReceive = do
|
||||
alice <## "completed uploading file 1 (test.pdf) for bob"
|
||||
bob #$> ("/_set_file_to_receive 1", id, "ok")
|
||||
|
||||
threadDelay 100000
|
||||
|
||||
bob ##> "/_stop"
|
||||
bob <## "chat stopped"
|
||||
|
||||
bob #$> ("/_files_folder ./tests/tmp/bob_files", id, "ok")
|
||||
bob #$> ("/_temp_folder ./tests/tmp/bob_xftp", id, "ok")
|
||||
|
||||
threadDelay 100000
|
||||
|
||||
bob ##> "/_start"
|
||||
bob <## "chat started"
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ textWithUri :: Spec
|
||||
textWithUri = describe "text with Uri" do
|
||||
it "correct markdown" do
|
||||
parseMarkdown "https://simplex.chat" `shouldBe` uri "https://simplex.chat"
|
||||
parseMarkdown "https://simplex.chat." `shouldBe` uri "https://simplex.chat" <> "."
|
||||
parseMarkdown "https://simplex.chat, hello" `shouldBe` uri "https://simplex.chat" <> ", hello"
|
||||
parseMarkdown "http://simplex.chat" `shouldBe` uri "http://simplex.chat"
|
||||
parseMarkdown "this is https://simplex.chat" `shouldBe` "this is " <> uri "https://simplex.chat"
|
||||
parseMarkdown "https://simplex.chat site" `shouldBe` uri "https://simplex.chat" <> " site"
|
||||
|
||||
Reference in New Issue
Block a user