Catch any API call
This commit is contained in:
parent
da103bf236
commit
de0ab986ae
1 changed files with 3 additions and 5 deletions
|
@ -58,10 +58,10 @@ TEXT is the output text, optionally with a list of REFERENCES."
|
|||
:expect-mismatch-phrase "Expected `%A' not to be equal (incl. properties) to %b, but `%A' was %a.")
|
||||
|
||||
(describe "kagi.el"
|
||||
(describe "FastGPT"
|
||||
:var ((dummy-output "text"))
|
||||
(before-each
|
||||
(spy-on #'kagi--call-api :and-return-value (kagi-test--dummy-output dummy-output)))
|
||||
(describe "FastGPT"
|
||||
(describe "kagi-fastgpt-prompt"
|
||||
(before-each
|
||||
(spy-on #'message)
|
||||
|
@ -235,8 +235,6 @@ https://www.example.com"
|
|||
(expect (call-interactively #'kagi-proofread) :to-throw))))
|
||||
|
||||
(xdescribe "Summarizer"
|
||||
(before-each
|
||||
(spy-on #'kagi--call-api))
|
||||
(it "contains a spec with an expectation"
|
||||
(expect t :to-be t))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue