Skip to content

Commit

Permalink
dumb-jump-get-point-symbol-region-active-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia committed Aug 8, 2016
1 parent 09850f4 commit 4537349
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/dumb-jump-test.el
Expand Up @@ -176,6 +176,14 @@
(expected (f-expand dumb-jump-default-project)))
(should (string= found-project expected)))))

(ert-deftest dumb-jump-get-point-symbol-region-active-test ()
(with-mock
(mock (region-active-p) => t)
(mock (region-beginning) => 0)
(mock (region-end) => 1)
(mock (buffer-substring-no-properties * *) => "blah")
(dumb-jump-get-point-symbol)))

(ert-deftest dumb-jump-goto-file-line-test ()
(let ((js-file (f-join test-data-dir-proj1 "src" "js" "fake.js")))
(with-mock
Expand Down

0 comments on commit 4537349

Please sign in to comment.