File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,15 @@ describe('LinkResolver', () => {
2626
2727 it ( 'should allow a function to be supplied, to find the destination of a link' , ( ) => {
2828 const resolver = LinkResolver . getInstance ( ) ;
29- resolver . setGetFirstLinkpathDestFn ( ( _rawLink : Reference , _sourcePath : string ) => 'Hello World.md' ) ;
29+ resolver . setGetFirstLinkpathDestFn ( ( ) => 'Hello World.md' ) ;
3030
3131 const link = resolver . resolve ( rawLink , link_in_file_body . filePath ) ;
3232 expect ( link . destinationPath ) . toEqual ( 'Hello World.md' ) ;
3333 } ) ;
3434
3535 it ( 'should allow the global instance to be reset' , ( ) => {
3636 const globalInstance = LinkResolver . getInstance ( ) ;
37- globalInstance . setGetFirstLinkpathDestFn (
38- ( _rawLink : Reference , _sourcePath : string ) => 'From Global Instance.md' ,
39- ) ;
37+ globalInstance . setGetFirstLinkpathDestFn ( ( ) => 'From Global Instance.md' ) ;
4038
4139 const link1 = globalInstance . resolve ( rawLink , link_in_file_body . filePath ) ;
4240 expect ( link1 . destinationPath ) . toEqual ( 'From Global Instance.md' ) ;
You can’t perform that action at this time.
0 commit comments