mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
"SimplexLink 2" "SimplexLink 3"
This commit is contained in:
@@ -273,6 +273,74 @@ formattedEditedTextTests = describe "show edits" do
|
||||
}
|
||||
]
|
||||
|
||||
it "SimplexLink 2" do
|
||||
findDiffs
|
||||
(LeftSide $ S.fromList
|
||||
[ FormattedChar '>' $ Just $ SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]}
|
||||
])
|
||||
(RightSide $ S.fromList
|
||||
[ FormattedChar '>' $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/3/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]
|
||||
}
|
||||
])
|
||||
`shouldBe` S.fromList
|
||||
[ DiffedChar
|
||||
(FormattedChar '>' $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]
|
||||
}
|
||||
) $
|
||||
UnchangedChar $ ChangedToFormat $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/3/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]
|
||||
}
|
||||
]
|
||||
|
||||
it "SimplexLink 3" do
|
||||
findDiffs
|
||||
(LeftSide $ S.fromList
|
||||
[ FormattedChar '>' $ Just $ SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]}
|
||||
])
|
||||
(RightSide $ S.fromList
|
||||
[ FormattedChar '>' $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host0", "host2", "host3"]
|
||||
}
|
||||
])
|
||||
`shouldBe` S.fromList
|
||||
[ DiffedChar
|
||||
(FormattedChar '>' $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host1", "host2", "host3"]
|
||||
}
|
||||
) $
|
||||
UnchangedChar $ ChangedToFormat $ Just SimplexLink
|
||||
{ linkType = XLContact
|
||||
, simplexUri = "https://api.twitter.com/2/tweets/:id"
|
||||
, trustedUri = True
|
||||
, smpHosts = NE.fromList ["host0", "host2", "host3"]
|
||||
}
|
||||
]
|
||||
|
||||
it "findPlainDiffs 1" do
|
||||
findPlainDiffs
|
||||
(LeftSide "https://api.twitter.com/2/tweets/:id")
|
||||
|
||||
Reference in New Issue
Block a user