emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup 3734152 251/340: Make buttercup-describe return


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 3734152 251/340: Make buttercup-describe return the created suite object
Date: Thu, 16 Dec 2021 14:59:44 -0500 (EST)

branch: elpa/buttercup
commit 373415228ac9ca46311ea9afeaea0cd23949fd54
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>

    Make buttercup-describe return the created suite object
    
    Returning the buttercup-suite object from these function makes it
    possible to write simpler code elsewhere, especially tests.
---
 buttercup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buttercup.el b/buttercup.el
index ef8cc5d..e28cb01 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -845,7 +845,8 @@ is a function containing the body instructions passed to
            (format "Found duplicate spec names in suite: %S"
                    (delete-dups dups)))))
       (setq buttercup-suites (append buttercup-suites
-                                     (list buttercup--current-suite))))))
+                                     (list buttercup--current-suite)))
+      buttercup--current-suite)))
 
 ;;;;;;;;;;;;;
 ;;; Specs: it



reply via email to

[Prev in Thread] Current Thread [Next in Thread]