mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 18:08:13 +08:00
10 lines
330 B
JavaScript
10 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"]);
|
|
});
|
|
});
|