Skip to content

Commit

Permalink
test-org-link/store-link: Update tests for 4fc2c8d
Browse files Browse the repository at this point in the history
* testing/lisp/test-ol.el (test-org-link/store-link): Do not expect
duplicating raw link in the file link description.
  • Loading branch information
yantar92 committed Sep 13, 2022
1 parent f8d740f commit 86c4635
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/lisp/test-ol.el
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ See https://github.com/yantar92/org/issues/4."
(org-context-in-file-links nil))
(org-test-with-temp-text-in-file "* h1"
(let ((file (buffer-file-name)))
(equal (format "[[file:%s][file:%s]]" file file)
(equal (format "[[file:%s]]" file file)
(org-store-link nil))))))
;; C-u prefix reverses `org-context-in-file-links' in Org buffer.
(should
Expand All @@ -250,7 +250,7 @@ See https://github.com/yantar92/org/issues/4."
(org-context-in-file-links nil))
(org-test-with-temp-text-in-file "* h1"
(let ((file (buffer-file-name)))
(equal (format "[[file:%s][file:%s]]" file file)
(equal (format "[[file:%s]]" file file)
(org-store-link '(16)))))))
;; Store file link to non-Org buffer, with context.
(should
Expand All @@ -268,7 +268,7 @@ See https://github.com/yantar92/org/issues/4."
(org-test-with-temp-text-in-file "one\n<point>two"
(fundamental-mode)
(let ((file (buffer-file-name)))
(equal (format "[[file:%s][file:%s]]" file file)
(equal (format "[[file:%s]]" file file)
(org-store-link nil))))))
;; C-u prefix reverses `org-context-in-file-links' in non-Org
;; buffer.
Expand All @@ -288,7 +288,7 @@ See https://github.com/yantar92/org/issues/4."
(org-test-with-temp-text-in-file "one\n<point>two"
(fundamental-mode)
(let ((file (buffer-file-name)))
(equal (format "[[file:%s][file:%s]]" file file)
(equal (format "[[file:%s]]" file file)
(org-store-link '(16)))))))
;; Context does not include special search syntax.
(should
Expand Down

0 comments on commit 86c4635

Please sign in to comment.