File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; ;; clojure-ts-mode-util-test.el --- Clojure TS Mode: util test suite -*- lexical-binding : t ; -*-
2
+
3
+ ; ; Copyright © 2022-2024 Danny Freeman
4
+
5
+ ; ; This file is not part of GNU Emacs.
6
+
7
+ ; ; This program is free software; you can redistribute it and/or modify
8
+ ; ; it under the terms of the GNU General Public License as published by
9
+ ; ; the Free Software Foundation, either version 3 of the License, or
10
+ ; ; (at your option) any later version.
11
+
12
+ ; ; This program is distributed in the hope that it will be useful,
13
+ ; ; but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ ; ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ ; ; GNU General Public License for more details.
16
+
17
+ ; ; You should have received a copy of the GNU General Public License
18
+ ; ; along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+
20
+ ; ;; Commentary:
21
+
22
+ ; ; The unit test suite of Clojure TS Mode
23
+
24
+ (require 'clojure-ts-mode )
25
+ (require 'buttercup )
26
+ (require 'imenu )
27
+
28
+
29
+ (describe " clojure-ts-mode imenu integration"
30
+ (it " should index def with meta data"
31
+ (with-clojure-ts-buffer " ^{:foo 1}(def a 1)"
32
+ (expect (imenu--in-alist " a" (imenu--make-index-alist ))
33
+ :not :to-be nil )))
34
+
35
+ (it " should index defn with meta data"
36
+ (with-clojure-ts-buffer " ^{:foo 1}(defn a [])"
37
+ (expect (imenu--in-alist " a" (imenu--make-index-alist ))
38
+ :not :to-be nil ))))
You can’t perform that action at this time.
0 commit comments