Skip to content

Commit 86c4635

Browse files
committed
test-org-link/store-link: Update tests for 4fc2c8d
* testing/lisp/test-ol.el (test-org-link/store-link): Do not expect duplicating raw link in the file link description.
1 parent f8d740f commit 86c4635

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/lisp/test-ol.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ See https://github.com/yantar92/org/issues/4."
231231
(org-context-in-file-links nil))
232232
(org-test-with-temp-text-in-file "* h1"
233233
(let ((file (buffer-file-name)))
234-
(equal (format "[[file:%s][file:%s]]" file file)
234+
(equal (format "[[file:%s]]" file file)
235235
(org-store-link nil))))))
236236
;; C-u prefix reverses `org-context-in-file-links' in Org buffer.
237237
(should
@@ -250,7 +250,7 @@ See https://github.com/yantar92/org/issues/4."
250250
(org-context-in-file-links nil))
251251
(org-test-with-temp-text-in-file "* h1"
252252
(let ((file (buffer-file-name)))
253-
(equal (format "[[file:%s][file:%s]]" file file)
253+
(equal (format "[[file:%s]]" file file)
254254
(org-store-link '(16)))))))
255255
;; Store file link to non-Org buffer, with context.
256256
(should
@@ -268,7 +268,7 @@ See https://github.com/yantar92/org/issues/4."
268268
(org-test-with-temp-text-in-file "one\n<point>two"
269269
(fundamental-mode)
270270
(let ((file (buffer-file-name)))
271-
(equal (format "[[file:%s][file:%s]]" file file)
271+
(equal (format "[[file:%s]]" file file)
272272
(org-store-link nil))))))
273273
;; C-u prefix reverses `org-context-in-file-links' in non-Org
274274
;; buffer.
@@ -288,7 +288,7 @@ See https://github.com/yantar92/org/issues/4."
288288
(org-test-with-temp-text-in-file "one\n<point>two"
289289
(fundamental-mode)
290290
(let ((file (buffer-file-name)))
291-
(equal (format "[[file:%s][file:%s]]" file file)
291+
(equal (format "[[file:%s]]" file file)
292292
(org-store-link '(16)))))))
293293
;; Context does not include special search syntax.
294294
(should

0 commit comments

Comments
 (0)