[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste e0a35fd 232/298: WP-25: Add test for raw pastes
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste e0a35fd 232/298: WP-25: Add test for raw pastes |
Date: |
Thu, 9 Dec 2021 19:00:20 -0500 (EST) |
branch: elpa/webpaste
commit e0a35fdd2ce4ac7f85968934c418db1c8cd8b633
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>
WP-25: Add test for raw pastes
---
tests/unit/test-webpaste-default-post-field-lambda.el | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/tests/unit/test-webpaste-default-post-field-lambda.el
b/tests/unit/test-webpaste-default-post-field-lambda.el
index 3666037..022fcb6 100644
--- a/tests/unit/test-webpaste-default-post-field-lambda.el
+++ b/tests/unit/test-webpaste-default-post-field-lambda.el
@@ -21,7 +21,22 @@
:post-data '(("duration" . "1 day")))))
(expect post-data
:to-equal
- '(("lang" . "text") ("content" . "my text") ("duration" . "1
day")))))))
+ '(("lang" . "text") ("content" . "my text") ("duration" . "1
day"))))))
+ (it
+ "can paste raw pastes"
+ (let ((post-lambda (webpaste--providers-default-post-field-lambda))
+ (major-mode 'fundamental-mode)
+ (webpaste-paste-raw-text t)
+ (webpaste--provider-lang-alists '(("https://example.com/" .
((fundamental-mode . "text"))))))
+ (let ((post-data (funcall post-lambda
+ :text "my text"
+ :post-field "content"
+ :provider-uri "https://example.com/"
+ :post-lang-field-name "lang"
+ :post-data '(("duration" . "1 day")))))
+ (expect post-data
+ :to-equal
+ '(("content" . "my text") ("duration" . "1 day")))))))
;;; test-webpaste-default-post-field-lambda.el ends here
- [nongnu] elpa/webpaste bd38635 253/298: [readme] Add two new suggestions for providers, (continued)
- [nongnu] elpa/webpaste bd38635 253/298: [readme] Add two new suggestions for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01c2858 261/298: Fix typos, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e7fed98 246/298: Reindent entire webpaste.el to match updated indentation style, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9d3c866 233/298: WP-25: Implement support for raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ef33b0f 269/298: Fix provider definition issue and add test for paste.mozilla.org, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b713d5e 259/298: travis: Drop tests for versions where cask seems to be incompatible, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2decf1e 276/298: Revert "Fix bug in webpaste-paste-buffer-or-region when you don't have a region", ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1600425 291/298: Merge branch 'dsedivec-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bbdc5e5 296/298: providers: Drop paste.pound-python.org, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 49a7123 236/298: Add missing TOC link about raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e0a35fd 232/298: WP-25: Add test for raw pastes,
ELPA Syncer <=
- [nongnu] elpa/webpaste 5505685 226/298: Drop simpleclip support, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7397cbc 220/298: Fix duplicate elements added to alists, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 69a8eed 240/298: Merge branch 'kaushalmodi-add-toml-lang-to-ptpbpw-default', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01a65a0 262/298: Merge branch 'DamienCassou-typos', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ed33094 266/298: Support mozilla hosted pastebin service, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste badf3b5 257/298: nix-shell: Improve the shell so all tests just runs, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 933c62f 245/298: CONTRIBUTING: Add some more clarifications, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01fd1d6 231/298: WP-25: Add custom to only paste raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 77e6154 193/298: Bump version for new release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 157d524 206/298: Fix build since EVM and Cask seems to behave strangely lately, ELPA Syncer, 2021/12/09