mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
|
import gotoAnythingStyleQuery from './gotoAnythingStyleQuery';
|
||
|
|
||
|
describe('searchengine/gotoAnythingStyleQuery', () => {
|
||
|
|
||
|
it('should prepare queries', () => {
|
||
|
const testCases: [string, string][] = [
|
||
|
['hello', 'hello*'],
|
||
|
['hello welc', 'hello* welc*'],
|
||
|
];
|
||
|
|
||
|
for (const [input, expected] of testCases) {
|
||
|
const actual = gotoAnythingStyleQuery(input);
|
||
|
expect(actual).toBe(expected);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|