-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathactivate_test.cljs
28 lines (24 loc) · 962 Bytes
/
activate_test.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(ns integration-test.activate-test
(:require [cljs.test :refer [deftest testing is]]
["path" :as path]))
(deftest user-activate
(testing "User activation script is required"
(is #_{:clj-kondo/ignore [:unresolved-namespace]}
(= #'user-activate/!db
((ns-publics 'user-activate) '!db)))))
(deftest ws-activate
(testing "Workspace activation script defines a symbol"
(is (= :symbol-1
#_{:clj-kondo/ignore [:unresolved-namespace]}
workspace-activate/symbol-1)))
(testing "Workspace activation script defines a function"
(is (= :fn-1
#_{:clj-kondo/ignore [:unresolved-namespace]}
(workspace-activate/fn-1))))
(testing "Workspace activation script finds workspace root"
(is (= "workspace-1"
#_{:clj-kondo/ignore [:unresolved-namespace]}
(-> (workspace-activate/ws-root)
.-uri
.-fsPath
path/basename)))))