trilium/spec/parser.spec.js
2020-05-20 00:03:33 +02:00

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"]);
});
});