Skip to content

Commit aba7ad5

Browse files
committed
Fix tests
1 parent 9d3e8a9 commit aba7ad5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/lsp-dart-utils-test.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373

7474
(ert-deftest lsp-dart-get-sdk-dir--flutter-project-test ()
7575
(lsp-dart-test-from-flutter-project
76+
(mock (lsp-dart-flutter-project-p) => t)
7677
(mock (lsp-dart-get-flutter-sdk-dir) => "/flutter-sdk")
78+
(mock (file-exists-p "/flutter-sdk/bin/cache/dart-sdk/") => t)
7779
(should (equal (lsp-dart-get-sdk-dir) "/flutter-sdk/bin/cache/dart-sdk/"))))
7880

7981
(ert-deftest lsp-dart-get-sdk-dir--project-without-dart-on-path-test ()

0 commit comments

Comments
 (0)