[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 3a0a58f 065/340: Test buttercup--print.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 3a0a58f 065/340: Test buttercup--print. |
Date: |
Thu, 16 Dec 2021 14:59:05 -0500 (EST) |
branch: elpa/buttercup
commit 3a0a58fb6356f64eb768638104961dfa28024069
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>
Test buttercup--print.
---
buttercup-test.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/buttercup-test.el b/buttercup-test.el
index 735bd9e..20b7a42 100644
--- a/buttercup-test.el
+++ b/buttercup-test.el
@@ -629,6 +629,17 @@
(buttercup-reporter-batch 'unknown-event nil))
:to-throw)))))
+(describe "The `buttercup--print' function"
+ (before-each
+ (spy-on 'send-string-to-terminal))
+
+ (it "should send a formatted string to the terminal"
+ (buttercup--print "Hello, %s" "world")
+
+ (expect 'send-string-to-terminal
+ :to-have-been-called-with
+ "Hello, world")))
+
;;;;;;;;;;;;;
;;; Utilities
- [nongnu] elpa/buttercup 4d974d2 319/340: Use correct function for --stale-file-error, (continued)
- [nongnu] elpa/buttercup 4d974d2 319/340: Use correct function for --stale-file-error, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a37d1a0 325/340: Fix compilation warning about undefined variable., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b4e0986 333/340: Merge pull request #194 from doublep/eldev-doc, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 108d229 340/340: Fix property comparisons in unit tests., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dacfacc 332/340: Recognize buttercup--mark-stackframe in buttercup--enclosed-expr, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bd55e2b 330/340: Add stacktrace style `omit`, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b574cb2 331/340: test: Fix byte compiler errors and warnings, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9e1c5c9 329/340: test: Add tests for backtrace prints, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1de6be4 339/340: Bump version: 1.23 → 1.24, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 8b3f7a0 336/340: Merge pull request #199 from wasamasa/print-args-as-sexp, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 3a0a58f 065/340: Test buttercup--print.,
ELPA Syncer <=
- [nongnu] elpa/buttercup e6fd5f5 096/340: Track pending specs separately, ELPA Syncer, 2021/12/16