1
0
Fork 0

Fix fictitious error output

This commit is contained in:
Bram Schoenmakers 2024-04-09 19:48:41 +02:00
parent e4200270c0
commit c25c0ead95
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -55,9 +55,9 @@ TEXT is the output text, optionally with a list of REFERENCES."
(defun kagi-test--error-output (&optional msg)
"Construct a fictitious erroneous result from the Kagi FastGPT API."
(json-encode
(list `(data . ((output . nil)
(error . (((code . 42)
(msg . ,(or msg "Too bad"))))))))))
`((data . ((output . nil)))
(error . (((code . 42)
(msg . ,(or msg "Too bad"))))))))
(buttercup-define-matcher-for-binary-function
:to-be-equal-including-properties equal-including-properties