mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-29 14:01:45 +00:00
test(operators): expect USWNoNamesServers warning in no-servers cases
This commit is contained in:
@@ -38,9 +38,9 @@ validateServersTest :: Spec
|
||||
validateServersTest = describe "validate user servers" $ do
|
||||
it "should pass valid user servers" $ validateUserServers [valid] [] `shouldBe` ([], [])
|
||||
it "should fail without servers" $ do
|
||||
validateUserServers [invalidNoServers] [] `shouldBe` ([USENoServers aSMP Nothing], [])
|
||||
validateUserServers [invalidDisabled] [] `shouldBe` ([USENoServers aSMP Nothing], [])
|
||||
validateUserServers [invalidDisabledOp] [] `shouldBe` ([USENoServers aSMP Nothing, USENoServers aXFTP Nothing], [USWNoChatRelays Nothing])
|
||||
validateUserServers [invalidNoServers] [] `shouldBe` ([USENoServers aSMP Nothing], [USWNoNamesServers Nothing])
|
||||
validateUserServers [invalidDisabled] [] `shouldBe` ([USENoServers aSMP Nothing], [USWNoNamesServers Nothing])
|
||||
validateUserServers [invalidDisabledOp] [] `shouldBe` ([USENoServers aSMP Nothing, USENoServers aXFTP Nothing], [USWNoChatRelays Nothing, USWNoNamesServers Nothing])
|
||||
it "should fail without servers with storage role" $ do
|
||||
validateUserServers [invalidNoStorage] [] `shouldBe` ([USEStorageMissing aSMP Nothing], [])
|
||||
it "should fail with duplicate host" $ do
|
||||
|
||||
Reference in New Issue
Block a user