mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-07 12:49:14 -05:00
refactoring for testing parser
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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"]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user