[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 5ac7d23765 2/4: add tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 5ac7d23765 2/4: add tests |
Date: |
Tue, 24 May 2022 13:58:54 -0400 (EDT) |
branch: elpa/webpaste
commit 5ac7d23765fb2336f81595742fd88d05cd6de774
Author: Alberto Donato <alberto.donato@gmail.com>
Commit: Alberto Donato <alberto.donato@gmail.com>
add tests
---
tests/integration/test-webpaste-providers.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/integration/test-webpaste-providers.el
b/tests/integration/test-webpaste-providers.el
index 371df44dbc..b7123b85fb 100644
--- a/tests/integration/test-webpaste-providers.el
+++ b/tests/integration/test-webpaste-providers.el
@@ -82,7 +82,16 @@
(funcall (webpaste--get-provider-by-name "bpa.st") paste-message :sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
- (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0)))
+ (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0))
+
+ (it
+ "can paste with paste.ubuntu.com [ci]"
+
+ (spy-on 'file-name-nondirectory :and-return-value "file.txt")
+
+ (funcall (webpaste--get-provider-by-name "paste.ubuntu.com") paste-message
:sync t)
+ (expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
+ (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0)))
;;; test-webpaste-providers.el ends here