[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/cider 74472b120b 06/15: Cover `cider-format-connection-par
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/cider 74472b120b 06/15: Cover `cider-format-connection-params` |
Date: |
Fri, 18 Aug 2023 06:59:22 -0400 (EDT) |
branch: elpa/cider
commit 74472b120b90fe3055e623e27da8e0f7be8ed6d5
Author: vemv <vemv@users.noreply.github.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Cover `cider-format-connection-params`
---
test/cider-connection-tests.el | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/test/cider-connection-tests.el b/test/cider-connection-tests.el
index 803035b386..f30ce7e9bc 100644
--- a/test/cider-connection-tests.el
+++ b/test/cider-connection-tests.el
@@ -487,3 +487,21 @@
:to-be t)
(expect (cider--compatible-middleware-version-p "1.25.3" "1.25.2-alpha2")
:to-be t)))
+
+(describe "cider-format-connection-params"
+ (it "Generates a pretty string. `:repl-type' can be symbol." ;;
https://github.com/clojure-emacs/cider/issues/3402
+ (expect (cider-format-connection-params nrepl-repl-buffer-name-template
nil)
+ :to-equal "*cider-repl ~/project:localhost:(unknown)*")
+ (expect (cider-format-connection-params nrepl-repl-buffer-name-template
'(:host "localhost"
+
:port 12345
+
:project-dir "/Users/me/myproject"
+
:repl-type clj
+
:cljs-repl-type shadow))
+ :to-equal "*cider-repl me/myproject:localhost:12345(clj)*")
+
+ (expect (cider-format-connection-params nrepl-repl-buffer-name-template
'(:host "localhost"
+
:port 12345
+
:project-dir "/Users/me/myproject"
+
:repl-type cljs
+
:cljs-repl-type shadow))
+ :to-equal "*cider-repl
me/myproject:localhost:12345(cljs:shadow)*")))
- [nongnu] elpa/cider updated (e28fe55d55 -> 856a35cf97), ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 00f765b800 04/15: Add a standard header suggesting `it` blocks, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 856a35cf97 15/15: Don't lose the CIDER session over TRAMP files, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider f3f7d83bb1 02/15: Use `it` more, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider f14c8de037 12/15: Describe `cider-locate-running-nrepl-ports`, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 1f426a4ac8 03/15: Settle on `*tests.el` naming, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 093f79cf09 11/15: Check `.nrepl-port`-like files for liveness, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider ff98bc7df2 05/15: Bump some copyright years, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 74472b120b 06/15: Cover `cider-format-connection-params`,
ELPA Syncer <=
- [nongnu] elpa/cider 34f1bfc377 09/15: Bump the injected Piggieback to 0.5.3, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 363b8e9eb2 10/15: Recompute namespace info on each fighweel-main recompilation, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 9e4bce60d9 13/15: Add a Dockerfile for TRAMP development purposes, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 012e3fe71f 14/15: Make TRAMP functionality work when using non-standard ports, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 60aaf2cf44 01/15: Remove unused `provide`s in tests, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider aa516693bd 07/15: Run test suite on Emacs 29, ELPA Syncer, 2023/08/18
- [nongnu] elpa/cider 9d1c3cd203 08/15: fix `cider-format-connection-params` edge case for Emacs 29, ELPA Syncer, 2023/08/18