about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-23 07:05:53 +0000
committerEric Wong <e@80x24.org>2020-11-24 05:03:55 +0000
commitc118d783a22a2080964899266c91c1a1ac69f481 (patch)
tree1d1850f0d06ca1eeb62ce5047f6da0fbf203f897 /t
parentf1bdfad51c98825e7e2569aa34db7d3879fa9ef4 (diff)
downloadpublic-inbox-c118d783a22a2080964899266c91c1a1ac69f481.tar.gz
We'll be using this for MiscIdx and pre-generating the necessary
JSON for manifest.js.gz, so make it easier to share code for
generating per-repo JSON entries for grokmirror.
Diffstat (limited to 't')
-rw-r--r--t/www_listing.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/www_listing.t b/t/www_listing.t
index 4309a5e1..63613371 100644
--- a/t/www_listing.t
+++ b/t/www_listing.t
@@ -21,8 +21,7 @@ use_ok 'PublicInbox::Git';
 my ($tmpdir, $for_destroy) = tmpdir();
 my $bare = PublicInbox::Git->new("$tmpdir/bare.git");
 PublicInbox::Import::init_bare($bare->{git_dir});
-is(PublicInbox::ManifestJsGz::fingerprint($bare), undef,
-        'empty repo has no fingerprint');
+is($bare->manifest_entry, undef, 'empty repo has no manifest entry');
 {
         my $fi_data = './t/git.fast-import-data';
         open my $fh, '<', $fi_data or die "open $fi_data: $!";
@@ -31,7 +30,7 @@ is(PublicInbox::ManifestJsGz::fingerprint($bare), undef,
                 'fast-import');
 }
 
-like(PublicInbox::ManifestJsGz::fingerprint($bare), qr/\A[a-f0-9]{40}\z/,
+like($bare->manifest_entry->{fingerprint}, qr/\A[a-f0-9]{40}\z/,
         'got fingerprint with non-empty repo');
 
 sub tiny_test {