Skip to content

Commit

Permalink
another test for quick-look
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia committed Feb 24, 2016
1 parent b3464a8 commit dc11e1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/dumb-jump-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@
(let ((result '(:path "src/file.js" :line 62 :context "var isNow = true" :diff 7 :target "isNow")))
(dumb-jump-result-follow result))))

(ert-deftest dumb-jump-message-result-follow-tooltip-test ()
(noflet ((popup-tip (s)
(should (string= s "/file.js:62 var isNow = true"))))
(let ((result '(:path "src/file.js" :line 62 :context "var isNow = true" :diff 7 :target "isNow")))
(dumb-jump-result-follow result t "src"))))

(ert-deftest dumb-jump-populate-regexes-test ()
(should (equal (dumb-jump-populate-regexes "testvar" '("JJJ\\s*=\\s*")) '("testvar\\s*=\\s*")))
(should (equal (dumb-jump-populate-regexes "$testvar" '("JJJ\\s*=\\s*")) '("\\$testvar\\s*=\\s*"))))
Expand Down

0 comments on commit dc11e1c

Please sign in to comment.