Skip to content

Commit

Permalink
Adds richer test example
Browse files Browse the repository at this point in the history
  • Loading branch information
digiguru committed Jul 12, 2020
1 parent 8f016d0 commit c11bb52
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/foam-core/test/loose-link-reference.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { LooseLinkReference } from '../src/note-graph';

import {LooseLinkReference} from '../src/LooseLinkReference'
describe('LooseLinkReference', () => {
it('Will match based on different use of accents', () => {
it('Will match based on different use of accents, punctuation and capitalization differences', () => {
const listOfFiles = [
new LooseLinkReference('zoë')
new LooseLinkReference('Zoë File')
];

expect(
LooseLinkReference.findBestMatch(
listOfFiles,
new LooseLinkReference('zoe')
new LooseLinkReference('zoe-file')
).original
).toEqual('zoë');
).toEqual('Zoë File');
});

it('Will match against exactly matches in preference of loose matches', () => {
Expand Down

0 comments on commit c11bb52

Please sign in to comment.