fix: preserve CHRNX incomplete podcast routing
This commit is contained in:
5 files changed
+47
-9
No files matched your search
@@ -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` );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user