Skip to content

Commit

Permalink
wire-api: Add golden test for ClientCapabilityListV7
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaymankar committed Dec 10, 2024
1 parent 9b1098e commit 4432e83
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/wire-api/test/golden/Test/Wire/API/Golden/Manual.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ tests =
(testObject_ClientCapabilityList_2, "testObject_ClientCapabilityList_2.json")
],
testGroup "ClientCapabilityListV6 - non-round-trip" $
[testToJSON testObject_ClientCapabilityList_3 "testObject_ClientCapabilityList_3.json"],
[ testToJSON testObject_ClientCapabilityList_3 "testObject_ClientCapabilityList_3.json",
testToJSON testObject_ClientCapabilityList_3_V7 "testObject_ClientCapabilityList_3_V7.json"
],
testGroup "ClientCapabilityList" $
testObjects
[ (testObject_ClientCapabilityList_4, "testObject_ClientCapabilityList_4.json"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ testObject_ClientCapabilityList_3 =
]
)

testObject_ClientCapabilityList_3_V7 :: Versioned V7 ClientCapabilityList
testObject_ClientCapabilityList_3_V7 =
Versioned $
ClientCapabilityList
( Set.fromList
[ ClientSupportsLegalholdImplicitConsent,
ClientSupportsConsumableNotifications
]
)

testObject_ClientCapabilityList_4 :: ClientCapabilityList
testObject_ClientCapabilityList_4 =
ClientCapabilityList mempty
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"legalhold-implicit-consent"
]

0 comments on commit 4432e83

Please sign in to comment.