more tests

This commit is contained in:
zadam
2020-05-23 22:18:06 +02:00
parent a2e1fb35b8
commit 8ce2afff8a
2 changed files with 12 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ describe("Lexer expression", () => {
});
it("dot separated properties", () => {
expect(lexer(`# ~author.title = 'Hugh Howey' AND note.title = 'Silo'`).expressionTokens)
.toEqual(["#", "~author", ".", "title", "=", "hugh howey", "and", "note", ".", "title", "=", "silo"]);
expect(lexer(`# ~author.title = 'Hugh Howey' AND note.'book title' = 'Silo'`).expressionTokens)
.toEqual(["#", "~author", ".", "title", "=", "hugh howey", "and", "note", ".", "book title", "=", "silo"]);
});
});