1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Remove query matcher shouldMatchPrefix support

This commit is contained in:
Germain Souquet
2021-03-31 18:21:02 +01:00
parent 377b6c8a05
commit c81847689a
3 changed files with 1 additions and 23 deletions

View File

@ -183,18 +183,4 @@ describe('QueryMatcher', function() {
expect(results.length).toBe(1);
expect(results[0].name).toBe('bob');
});
it('Matches only by prefix with shouldMatchPrefix on', function() {
const qm = new QueryMatcher([
{name: "Victoria"},
{name: "Tori"},
], {
keys: ["name"],
shouldMatchPrefix: true,
});
const results = qm.match('tori');
expect(results.length).toBe(1);
expect(results[0].name).toBe('Tori');
});
});