emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste 25ea405 103/298: Added ERT test for message when


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 25ea405 103/298: Added ERT test for message when returning URL
Date: Thu, 9 Dec 2021 18:59:53 -0500 (EST)

branch: elpa/webpaste
commit 25ea40547887467e62b610c01112e2d3d4073202
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Added ERT test for message when returning URL
---
 test/webpaste-test.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/webpaste-test.el b/test/webpaste-test.el
index f7c5d34..d9cfe42 100644
--- a/test/webpaste-test.el
+++ b/test/webpaste-test.el
@@ -9,8 +9,12 @@
 (ert-deftest webpaste-test/return-url ()
   "Test returning of URL's to the user."
 
-  (webpaste-return-url "https://example.com/";)
+  ;; Test to return a link and check that the message logged is the expected 
one
+  (should (equal
+           (webpaste-return-url "https://example.com/";)
+           "Added https://example.com/ to kill ring."))
 
+  ;; Check so the kill ring contain the correct contents
   (should (equal (car kill-ring) "https://example.com/";)))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]