We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557e3c6 commit dd46e8bCopy full SHA for dd46e8b
git-link-test.el
@@ -384,11 +384,8 @@
384
385
;; Call git-link interactively
386
(let ((result (git-link "origin" 3 nil))) ; Line 3, no end line
387
- ;; Verify the result contains GitHub URL with line number
388
- (should (stringp result))
389
- (should (string-match-p "github\\.com" result))
390
- (should (string-match-p "test-file\\.txt" result))
391
- (should (string-match-p "#L3" result)))
+ ;; Verify the result is the complete expected URL
+ (should (equal "https://github.com/user/repo/blob/master/test-file.txt#L3" result)))
392
393
;; Clean up buffer
394
(kill-buffer)))
0 commit comments