Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a32f57

Browse files
committedMar 6, 2023
Add another test for clojure-sort-ns
1 parent 74550a9 commit 3a32f57

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎test/clojure-mode-util-test.el

+12
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,18 @@
138138
(:require [my-app.views [user-page :as user-page]]
139139
[rum.core :as rum] ;comment\n))")))
140140

141+
(it "should sort requires in a basic ns with comments in the end"
142+
(with-clojure-buffer "(ns my-app.core
143+
(:require [rum.core :as rum] ;comment
144+
[my-app.views [user-page :as user-page]]
145+
;;[comment2]\n))"
146+
(clojure-sort-ns)
147+
(expect (buffer-string) :to-equal
148+
"(ns my-app.core
149+
(:require [my-app.views [user-page :as user-page]]
150+
[rum.core :as rum] ;comment
151+
;;[comment2]\n))")))
152+
141153
(it "should also sort imports in a ns"
142154
(with-clojure-buffer "\n(ns my-app.core
143155
(:require [my-app.views [front-page :as front-page]]

0 commit comments

Comments
 (0)
Please sign in to comment.