@@ -5,15 +5,19 @@ suite('DiffPresenter', () => {
55
66 test ( 'it passes URI of 2 texts to compare' , async ( ) => {
77 const commands = fakeCommands ( ) ;
8- const selectionInfoRegistry = { get : ( ) => { } } ;
9- const textTitleBuilder = { build : ( ) => { } } ;
108 const textResourceUtil = {
119 getUri : stubWithArgs (
1210 [ 'TEXT1' ] , 'URI_INSTANCE_1' ,
1311 [ 'TEXT2' ] , 'URI_INSTANCE_2'
1412 )
1513 } ;
16- const diffPresenter = new DiffPresenter ( { commands, textTitleBuilder, selectionInfoRegistry, textResourceUtil} ) ;
14+ const diffPresenter = new DiffPresenter ( {
15+ commands,
16+ configStore : { } ,
17+ textTitleBuilder : { build : ( ) => { } } ,
18+ selectionInfoRegistry : { get : ( ) => { } } ,
19+ textResourceUtil
20+ } ) ;
1721
1822 await diffPresenter . takeDiff ( 'TEXT1' , 'TEXT2' ) ;
1923
@@ -30,9 +34,13 @@ suite('DiffPresenter', () => {
3034 [ 'TEXT2' ] , 'TEXT_INFO_2'
3135 )
3236 } ;
33- const textTitleBuilder = { build : textKey => `TITLE_${ textKey } ` } ;
34- const textResourceUtil = { getUri : ( ) => { } } ;
35- const diffPresenter = new DiffPresenter ( { commands, textTitleBuilder, selectionInfoRegistry, textResourceUtil} ) ;
37+ const diffPresenter = new DiffPresenter ( {
38+ commands,
39+ configStore : { } ,
40+ textTitleBuilder : { build : textKey => `TITLE_${ textKey } ` } ,
41+ selectionInfoRegistry,
42+ textResourceUtil : { getUri : ( ) => { } }
43+ } ) ;
3644
3745 await diffPresenter . takeDiff ( 'TEXT1' , 'TEXT2' ) ;
3846
0 commit comments