]> Sergey Matveev's repositories - public-inbox.git/blob - t/lei-inspect.t
t/lei*: set EDITOR for dumb terminals
[public-inbox.git] / t / lei-inspect.t
1 #!perl -w
2 # Copyright all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 use strict; use v5.10.1; use PublicInbox::TestCommon;
5
6 test_lei(sub {
7         my ($ro_home, $cfg_path) = setup_public_inboxes;
8         lei_ok qw(inspect --dir), "$ro_home/t1", 'mid:testmessage@example.com';
9         my $ent = json_utf8->decode($lei_out);
10         is(ref($ent->{smsg}), 'ARRAY', 'smsg array');
11         is(ref($ent->{xdoc}), 'ARRAY', 'xdoc array');
12 });
13
14 done_testing;