diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2018-12-27 14:19:39 +0100 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2019-05-28 22:16:54 +0100 |
| commit | 897feba75ded5c93dcfc3d950319cf19c03252db (patch) | |
| tree | 9b7578e4c2cf39c5819e2b6a789fc42f92133d33 /test | |
| parent | f61d0a060ad54bdf0c305afe1e362518f64463dd (diff) | |
Do not require shut-up package
Diffstat (limited to 'test')
| -rw-r--r-- | test/helpful-unit-test.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el index 01e8067..64c9f02 100644 --- a/test/helpful-unit-test.el +++ b/test/helpful-unit-test.el @@ -140,7 +140,8 @@ bar"))) (with-temp-buffer (insert "(defun test-foo-edebug () 44)") (goto-char (point-min)) - (shut-up + (cl-letf (((symbol-function #'message) + (lambda (_format-string &rest _args)))) (eval (eval-sexp-add-defvars (edebug-read-top-level-form)) t)))) (helpful-function #'test-foo-edebug)) @@ -397,7 +398,8 @@ variables defined without `defvar'." (with-temp-buffer (insert "(defun test-foo-edebug-defn () 44)") (goto-char (point-min)) - (shut-up + (cl-letf (((symbol-function #'message) + (lambda (_format-string &rest _args)))) (eval (eval-sexp-add-defvars (edebug-read-top-level-form)) t)) (-let [(buf pos opened) (helpful--definition 'test-foo-edebug-defn t)] |
