Skip to content

Commit

Permalink
fix broken clojure -> cljs alias rewriting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed May 12, 2017
1 parent 72926e3 commit 27c076e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/clojure/cljs/analyzer_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -340,22 +340,22 @@
(deftest test-rewrite-cljs-aliases
(is (= (a/rewrite-cljs-aliases
'((:require-macros (bar :refer [quux]) :reload)
(:require (clojure.spec :as s :refer [fdef]) :reload)))
(:require (clojure.spec.alpha :as s :refer [fdef]) :reload)))
'((:require-macros (bar :refer [quux]) :reload)
(:require (cljs.spec :as s :refer [fdef])
(cljs.spec :as clojure.spec) :reload))))
(:require (cljs.spec.alpha :as s :refer [fdef])
(cljs.spec.alpha :as clojure.spec.alpha) :reload))))
(is (= (a/rewrite-cljs-aliases
'((:refer-clojure :exclude [first])
(:require-macros (bar :refer [quux]) :reload)
(:require (clojure.spec :as s) :reload)))
(:require (clojure.spec.alpha :as s) :reload)))
'((:refer-clojure :exclude [first])
(:require-macros (bar :refer [quux]) :reload)
(:require (cljs.spec :as s) (cljs.spec :as clojure.spec) :reload))))
(:require (cljs.spec.alpha :as s) (cljs.spec.alpha :as clojure.spec.alpha) :reload))))
(is (= (a/rewrite-cljs-aliases
'((:require-macros (bar :refer [quux]) :reload)
(:require clojure.spec :reload)))
(:require clojure.spec.alpha :reload)))
'((:require-macros (bar :refer [quux]) :reload)
(:require (cljs.spec :as clojure.spec) :reload)))))
(:require (cljs.spec.alpha :as clojure.spec.alpha) :reload)))))

;; =============================================================================
;; Namespace metadata
Expand Down

0 comments on commit 27c076e

Please sign in to comment.