mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 02:22:26 +08:00
11 lines
330 B
JavaScript
11 lines
330 B
JavaScript
![]() |
const parser = require('../src/services/search/parser');
|
||
|
|
||
|
describe("Parser", () => {
|
||
|
it("fulltext parser without content", () => {
|
||
|
const exps = parser(["hello", "hi"], [], false);
|
||
|
|
||
|
expect(exps.constructor.name).toEqual("NoteCacheFulltextExp");
|
||
|
expect(exps.tokens).toEqual(["hello", "hi"]);
|
||
|
});
|
||
|
});
|