File tree Expand file tree Collapse file tree 1 file changed +38
-2
lines changed Expand file tree Collapse file tree 1 file changed +38
-2
lines changed Original file line number Diff line number Diff line change 55
55
56
56
(+ (lib/a 1) (b 2))"
57
57
58
- (clojure--rename-ns-alias-internal " foo" " bar" )))
58
+ (clojure--rename-ns-alias-internal " foo" " bar" ))
59
59
60
- (provide 'clojure-mode-refactor-rename-ns-alias-test )
60
+ (when-refactoring-it " should skip strings"
61
+ " (ns cljr.core
62
+ (:require [my.lib :as lib]))
63
+
64
+ (def dirname \" /usr/local/lib/python3.6/site-packages\" )
65
+
66
+ (+ (lib/a 1) (b 2))"
67
+
68
+ " (ns cljr.core
69
+ (:require [my.lib :as foo]))
70
+
71
+ (def dirname \" /usr/local/lib/python3.6/site-packages\" )
72
+
73
+ (+ (foo/a 1) (b 2))"
74
+
75
+ (clojure--rename-ns-alias-internal " lib" " foo" ))
76
+
77
+ (when-refactoring-it " should not skip comments"
78
+ " (ns cljr.core
79
+ (:require [my.lib :as lib]))
80
+
81
+ (def dirname \" /usr/local/lib/python3.6/site-packages\" )
82
+
83
+ ;; TODO refactor using lib/foo
84
+ (+ (lib/a 1) (b 2))"
85
+
86
+ " (ns cljr.core
87
+ (:require [my.lib :as new-lib]))
88
+
89
+ (def dirname \" /usr/local/lib/python3.6/site-packages\" )
90
+
91
+ ;; TODO refactor using new-lib/foo
92
+ (+ (new-lib/a 1) (b 2))"
93
+
94
+ (clojure--rename-ns-alias-internal " lib" " new-lib" )))
95
+
96
+ (provide 'clojure-mode-refactor-rename-ns-alias-test )
61
97
62
98
; ;; clojure-mode-refactor-rename-ns-alias-test.el ends here
You can’t perform that action at this time.
0 commit comments