about summary refs log tree commit homepage
path: root/t/lei-import-imap.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-27 11:07:50 +0000
committerEric Wong <e@80x24.org>2021-04-27 21:28:56 -0400
commit98cd36cdf25fb27e006bd49a3d5bd479be44ce50 (patch)
treeaa5961d76988d02e6cc352fafac265fc6e7b4525 /t/lei-import-imap.t
parentc7ec7eb31e5c770636275b850bcdc8b9ae0f59dd (diff)
downloadpublic-inbox-98cd36cdf25fb27e006bd49a3d5bd479be44ce50.tar.gz
We'll be supporting some sort of text view for pager or
piping to an $EDITOR buffer.
Diffstat (limited to 't/lei-import-imap.t')
-rw-r--r--t/lei-import-imap.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/lei-import-imap.t b/t/lei-import-imap.t
index 376a8b48..cf1fa49d 100644
--- a/t/lei-import-imap.t
+++ b/t/lei-import-imap.t
@@ -52,5 +52,11 @@ test_lei({ tmpdir => $tmpdir }, sub {
         is(ref($x->{'lei/store'}), 'ARRAY', 'lei/store in inspect');
         is(ref($x->{sync}), 'HASH', 'sync in inspect');
         is(ref($x->{sync}->{$k[0]}), 'ARRAY', 'UID arrays in inspect');
+
+        my $psgi_attach = 'cfa3622cbeffc9bd6b0fc66c4d60d420ba74f60d';
+        lei_ok('blob', $psgi_attach);
+        like($lei_out, qr!^Content-Type: multipart/mixed;!sm, 'got full blob');
+        lei_ok('blob', "$psgi_attach:2");
+        is($lei_out, "b64\xde\xad\xbe\xef\n", 'got attachment');
 });
 done_testing;