add test for a fix I did a while ago

This commit is contained in:
XeroOl 2024-05-13 01:53:52 -05:00
parent 8d57f60369
commit 0068662c8b

View File

@ -35,9 +35,12 @@
(let [(_ [response]) (create-client {:params (params-with-encodings nil)})]
(faith.= :utf-16 (. response :result :positionEncoding)))
(let [(_ [response]) (create-client {:params (params-with-encodings [:some-nonsense-encoding-I-dont-know])})]
(let [(_ [response]) (create-client {:params (params-with-encodings [:random-encoding])})]
(faith.= :utf-16 (. response :result :positionEncoding)))
(let [(_ [response]) (create-client {:params (params-with-encodings [:utf-8 :utf-16])})]
(faith.= :utf-8 (. response :result :positionEncoding)))
nil)