File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export const TldrTechExtractor = {
22 domain : 'tldr.tech' ,
33
44 title : {
5- selectors : [ [ 'meta[name="og:title"]' , 'value' ] , 'title '] ,
5+ selectors : [ 'h1 '] ,
66 } ,
77
88 lead_image_url : {
@@ -14,7 +14,7 @@ export const TldrTechExtractor = {
1414
1515 transforms : {
1616 h2 : $node => $node . attr ( 'class' , 'mercury-parser-keep' ) ,
17- h3 : $node => $node . attr ( 'class' , 'mercury-parser-keep' ) ,
17+ h3 : 'b' ,
1818 } ,
1919
2020 clean : [ ] ,
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ describe('TldrTechExtractor', () => {
2727 it ( 'returns the title' , async ( ) => {
2828 const { title } = await result ;
2929
30- assert . equal (
31- title ,
32- `OpenAI eyes $340B valuation 💰, Gemini 2.0 🤖, Javascript Temporal 👨💻`
33- ) ;
30+ assert . equal ( title , `TLDR 2025-01-31` ) ;
3431 } ) ;
3532 it ( 'returns the lead_image_url' , async ( ) => {
3633 const { lead_image_url } = await result ;
You can’t perform that action at this time.
0 commit comments