diff options
| -rw-r--r-- | guides/emacs/development.org | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/emacs/development.org b/guides/emacs/development.org index 92e2909..f1363e1 100644 --- a/guides/emacs/development.org +++ b/guides/emacs/development.org @@ -67,6 +67,13 @@ a symbol -- Selects the test that the symbol names, signals an PREDICATE is a function that takes an ert-test object as argument, and returns non-nil if it is selected. #+end_quote +** Writing +*** Mocking functions +#+begin_src elisp +(cl-letf (((symbol-function 'read-something) + (lambda (&rest _) "result"))) + (some-command)) +#+end_src * Third-party packages ** forge |
