@@ -6,7 +6,6 @@ import link_in_task_markdown_link from '../Obsidian/__test_data__/link_in_task_m
66import link_in_task_wikilink from '../Obsidian/__test_data__/link_in_task_wikilink.json' ;
77import link_is_broken from '../Obsidian/__test_data__/link_is_broken.json' ;
88
9- import link_in_file_body from '../Obsidian/__test_data__/link_in_file_body.json' ;
109import links_everywhere from '../Obsidian/__test_data__/links_everywhere.json' ;
1110import { allCacheSampleData } from '../Obsidian/AllCacheSampleData' ;
1211import type { SimulatedFile } from '../Obsidian/SimulatedFile' ;
@@ -264,31 +263,6 @@ describe('linkClass', () => {
264263 // []() and [alias]() are not detected by the obsidian parser as a link
265264 } ) ;
266265
267- describe ( 'destinationPath tests' , ( ) => {
268- it . failing ( 'should accept and return destinationPath' , ( ) => {
269- const data = link_in_file_body ;
270- const rawLink = data . cachedMetadata . links [ 0 ] ;
271- expect ( rawLink . original ) . toEqual ( '[[yaml_tags_is_empty]]' ) ;
272- expect ( rawLink . link ) . toEqual ( 'yaml_tags_is_empty' ) ;
273-
274- const destinationPath = 'Test Data/yaml_tags_is_empty.md' ;
275- const link = new Link ( rawLink , data . filePath ) ;
276-
277- expect ( link . destinationPath ) . toEqual ( destinationPath ) ;
278- } ) ;
279-
280- it . failing ( 'should return null path if destinationPath not supplied' , ( ) => {
281- const data = link_in_file_body ;
282- const rawLink = data . cachedMetadata . links [ 0 ] ;
283- expect ( rawLink . original ) . toEqual ( '[[yaml_tags_is_empty]]' ) ;
284- expect ( rawLink . link ) . toEqual ( 'yaml_tags_is_empty' ) ;
285-
286- const link = new Link ( rawLink , data . filePath ) ;
287-
288- expect ( link . destinationPath ) . toBeNull ( ) ;
289- } ) ;
290- } ) ;
291-
292266 describe ( 'linksTo() tests' , ( ) => {
293267 it ( 'matches filenames' , ( ) => {
294268 const link = getLink ( links_everywhere , 0 ) ;
0 commit comments