elm-matrix-sdk-beta/tests/Test/Values/Vault.elm

22 lines
574 B
Elm
Raw Normal View History

2023-12-24 10:30:50 +00:00
module Test.Values.Vault exposing (..)
2024-05-26 17:24:31 +00:00
import FastDict as Dict
2023-12-24 10:30:50 +00:00
import Fuzz exposing (Fuzzer)
2024-05-08 05:57:08 +00:00
import Internal.Tools.Json as Json
2023-12-24 10:30:50 +00:00
import Internal.Values.Vault exposing (Vault)
import Test exposing (..)
2024-05-08 05:57:08 +00:00
import Test.Tools.Hashdict as TestHashdict
import Test.Values.Room as TestRoom
2023-12-24 10:30:50 +00:00
vault : Fuzzer Vault
vault =
2024-07-19 07:02:01 +00:00
Fuzz.map3 Vault
2024-05-08 05:57:08 +00:00
(Fuzz.string
|> Fuzz.map (\k -> ( k, Json.encode Json.int 0 ))
|> Fuzz.list
|> Fuzz.map Dict.fromList
)
2024-06-08 13:25:49 +00:00
(Fuzz.maybe Fuzz.string)
2024-05-08 05:57:08 +00:00
(TestHashdict.fuzzer .roomId TestRoom.fuzzer)