refactored note_content_protected_fulltext.js and note_content_unprotected_fulltext.js into one class

This commit is contained in:
zadam
2022-05-11 21:33:41 +02:00
parent 963c18b8e4
commit 91d23c540a
6 changed files with 89 additions and 173 deletions

View File

@@ -58,11 +58,8 @@ describe("Parser", () => {
expect(subs[0].constructor.name).toEqual("NoteFlatTextExp");
expect(subs[0].tokens).toEqual(["hello", "hi"]);
expect(subs[1].constructor.name).toEqual("NoteContentProtectedFulltextExp");
expect(subs[1].constructor.name).toEqual("NoteContentFulltextExp");
expect(subs[1].tokens).toEqual(["hello", "hi"]);
expect(subs[2].constructor.name).toEqual("NoteContentUnprotectedFulltextExp");
expect(subs[2].tokens).toEqual(["hello", "hi"]);
});
it("simple label comparison", () => {