Skip to content

Commit 61f1088

Browse files
yuhan0bbatsov
authored andcommitted
Add delete-trailing-whitespace tests
1 parent e9c328a commit 61f1088

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

clojure-mode-external-interaction-test.el

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@
8484
(paredit-open-round))))
8585

8686

87+
(describe "Interactions with delete-trailing-whitespace"
88+
(when-refactoring-it "should not delete trailing commas"
89+
"(def foo
90+
\\\"foo\\\": 1,
91+
\\\"bar\\\": 2}
92+
93+
(-> m
94+
(assoc ,,,
95+
:foo 123))"
96+
"(def foo
97+
\\\"foo\\\": 1,
98+
\\\"bar\\\": 2}
99+
100+
(-> m
101+
(assoc ,,,
102+
:foo 123))"
103+
(delete-trailing-whitespace)))
104+
87105
(provide 'clojure-mode-external-interaction-test)
88106

89107

0 commit comments

Comments
 (0)