File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const clipImageURL = (config) => format.imageURL(
3333export const clipTitle = ( config ) => format . title (
3434 getTitleFromSchema ( config . window )
3535 || grabLongestMatchByClasses ( config . window , ...ClassMatchers . title )
36- || grabRecipeTitleFromDocumentTitle ( ) ,
36+ || grabRecipeTitleFromDocumentTitle ( config . window ) ,
3737) ;
3838
3939export const clipDescription = ( config ) => format . description (
@@ -63,7 +63,7 @@ export const clipTotalTime = (config) => format.totalTime(
6363
6464export const clipIngredients = async ( config ) => format . ingredients (
6565 getIngredientsFromSchema ( config . window )
66- || grabLongestMatchByClasses ( ...ClassMatchers . ingredients ) ,
66+ || grabLongestMatchByClasses ( config . window , ...ClassMatchers . ingredients ) ,
6767)
6868 || format . ingredients ( await grabByMl ( config , 1 ) ) ;
6969
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ describe('clipTitle', () => {
193193 } ) ;
194194
195195 it ( 'calls grabRecipeTitleFromDocumentTitle()' , ( ) => {
196- expect ( grabRecipeTitleFromDocumentTitleSpy ) . toBeCalled ( ) ;
196+ expect ( grabRecipeTitleFromDocumentTitleSpy ) . toBeCalledWith ( config . window ) ;
197197 } ) ;
198198
199199 it ( 'calls formatTitle()' , ( ) => {
You can’t perform that action at this time.
0 commit comments