about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-27 12:08:44 +0000
committerEric Wong <e@80x24.org>2021-08-28 10:37:10 +0000
commitc08ecad116d24f642bb53634eb6243a54e3a20be (patch)
tree36768a4166c4f2b081529c1badea0a4e9a745e1e /t
parentd7780e12856d83b9f5c58586691e2fbe711321ed (diff)
downloadpublic-inbox-c08ecad116d24f642bb53634eb6243a54e3a20be.tar.gz
www_listing: show ->ALL at top of HTML listing
It's a special case and we can show it in the HTML display
without affecting manifest.js.gz generation.
Diffstat (limited to 't')
-rw-r--r--t/extindex-psgi.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/extindex-psgi.t b/t/extindex-psgi.t
index d4761641..31b04acd 100644
--- a/t/extindex-psgi.t
+++ b/t/extindex-psgi.t
@@ -28,6 +28,8 @@ run_script([qw(-extindex --all), "$tmpdir/eidx"], $env) or BAIL_OUT;
 [extindex "all"]
         topdir = $tmpdir/eidx
         url = http://bogus.example.com/all
+[publicinbox]
+        wwwlisting = all
 EOM
 }
 my $www = PublicInbox::WWW->new(PublicInbox::Config->new($pi_config));
@@ -55,6 +57,10 @@ my $client = sub {
 
         $res = $cb->(GET('/all/all.mbox.gz'));
         is($res->code, 200, 'all.mbox.gz');
+
+        $res = $cb->(GET('/'));
+        my $html = $res->content;
+        like($html, qr!\Qhttp://bogus.example.com/all\E!, 'html shows /all');
 };
 test_psgi(sub { $www->call(@_) }, $client);
 %$env = (%$env, TMPDIR => $tmpdir, PI_CONFIG => $pi_config);