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

23 lines
601 B
Elm
Raw Permalink 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
2024-05-27 14:39:50 +00:00
import Test.Values.User as TestUser
2023-12-24 10:30:50 +00:00
vault : Fuzzer Vault
vault =
2024-05-27 14:39:50 +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
)
(TestHashdict.fuzzer .roomId TestRoom.fuzzer)
2024-05-27 14:39:50 +00:00
TestUser.fuzzer