Skip to content

Commit

Permalink
chore(test): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 19, 2024
1 parent e553601 commit 1c30709
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Eask
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(package "cognitive-complexity"
"0.1.0"
"1.0.0"
"Plugin shows complexity information")

(website-url "https://github.com/abougouffa/cognitive-complexity")
Expand All @@ -18,8 +18,5 @@

(development
(depends-on "kotlin-mode")
(depends-on "go-mode")
(depends-on "lua-mode")
(depends-on "rust-mode")
(depends-on "typescript-mode")
(depends-on "tree-sitter-langs"))
(depends-on "treesit-auto"))
6 changes: 3 additions & 3 deletions test/bash-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
;;

;;; Code:
(require 'codemetrics)
(require 'cognitive-complexity)

(cognitive-complexity-test bash-simple
"test/bash/Simple.sh"
sh-mode
bash-ts-mode
'(3
(function_definition . 0)
(command . 0)
Expand All @@ -43,7 +43,7 @@

(cognitive-complexity-test bash-recursion
"test/bash/Recursion.sh"
sh-mode
bash-ts-mode
'(2
(function_definition . 0)
(if_statement . 1)
Expand Down
2 changes: 1 addition & 1 deletion test/java-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
;;

;;; Code:
(require 'codemetrics)
(require 'cognitive-complexity)

(cognitive-complexity-test java-recursion
"test/java/Recursion.java"
Expand Down

0 comments on commit 1c30709

Please sign in to comment.