mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01: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"]);
|
|
});
|
|
});
|