From e0be9b9a015fcce95c9cf8df40dcf78ce307ee81 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 5 May 2017 19:38:05 -0400 Subject: tests/transport-next-link: Check "description exists" error --- test-org-link-edit.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-org-link-edit.el b/test-org-link-edit.el index da69fd2..9f8a3bd 100644 --- a/test-org-link-edit.el +++ b/test-org-link-edit.el @@ -558,6 +558,13 @@ website" (org-link-edit-transport-next-link nil (point-min) (point)) (buffer-string)) + :type 'user-error) + ;; Fail if link already has a description. + (should-error + (org-test-with-temp-text + "Here is Org's website \[\[http://orgmode.org/\]\[descrption\]\]" + (org-link-edit-transport-next-link) + (buffer-string)) :type 'user-error)) -- cgit v1.2.3