fix: preserve CHRNX incomplete podcast routing

This commit is contained in:
chrnx committed 2026-08-12 09:22:09 -05:00
1 parent d575e1ffad
commit 21da6da227
5 files changed
+47 -9

No files matched your search

+7
View File
@@ -29,6 +29,13 @@ test( 'local visual fixtures define stable pages and representative editorial st
assert.ok( posts.some( ( post ) => /^https:\/\//.test( post.canonicalEpisodeUrl ?? '' ) ) );
assert.ok( posts.some( ( post ) => hasState( post, 'missing-podcast-meta' ) && !( 'canonicalEpisodeUrl' in post ) ) );
assert.equal( new Set( posts.map( ( post ) => post.fixtureKey ) ).size, posts.length );
const incompletePodcast = posts.find( ( post ) => post.fixtureKey === 'post-podcast-missing-meta' );
assert.equal( incompletePodcast?.topic, 'podcasts' );
assert.equal( incompletePodcast?.language, 'es' );
assert.ok( !( 'show' in incompletePodcast ) && !( 'canonicalEpisodeUrl' in incompletePodcast ) );
assert.ok( hasState( incompletePodcast, 'missing-excerpt' ) );
assert.ok( posts.some( ( post ) => post.fixtureKey !== incompletePodcast.fixtureKey && hasState( post, 'missing-topic' ) && !( 'topic' in post ) ) );
assert.ok( posts.some( ( post ) => post.fixtureKey !== incompletePodcast.fixtureKey && hasState( post, 'missing-language' ) && !( 'language' in post ) ) );
for ( const topic of [ 'code', 'research', 'gaming', 'literature', 'music', 'podcasts', 'life' ] ) {
assert.ok( posts.some( ( post ) => post.topic === topic ), `missing ${ topic } fixture` );
}