1
0
Fork 0

Add test for invalid API tokens

This commit is contained in:
Bram Schoenmakers 2024-04-09 20:32:54 +02:00
parent c25c0ead95
commit 2c2e88eb04
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -82,6 +82,9 @@ The EXPECT-ARGS correspond to the arguments passed to the `expect' macro."
:var ((dummy-output "text"))
(before-each
(spy-on #'kagi--call-api :and-return-value (kagi-test--dummy-output dummy-output)))
(it "throws an error for invalid tokens"
(setq kagi-api-token 42)
(expect (kagi--curl-flags "foo") :to-throw))
(describe "FastGPT"
(describe "kagi-fastgpt-prompt"
(before-each