test: "unskip" skipped tests

This commit is contained in:
Panagiotis Papadopoulos 2025-02-14 09:17:57 +01:00
parent e347cdda36
commit 0e18c405d8

View File

@ -22,7 +22,7 @@ describe("Search", () => {
}); });
}); });
it.skip("simple path match", () => { it("simple path match", () => {
rootNote.child(note("Europe").child(note("Austria"))); rootNote.child(note("Europe").child(note("Austria")));
const searchContext = new SearchContext(); const searchContext = new SearchContext();
@ -32,7 +32,7 @@ describe("Search", () => {
expect(findNoteByTitle(searchResults, "Austria")).toBeTruthy(); expect(findNoteByTitle(searchResults, "Austria")).toBeTruthy();
}); });
it.skip("normal search looks also at attributes", () => { it("normal search looks also at attributes", () => {
const austria = note("Austria"); const austria = note("Austria");
const vienna = note("Vienna"); const vienna = note("Vienna");
@ -50,7 +50,7 @@ describe("Search", () => {
expect(findNoteByTitle(searchResults, "Vienna")).toBeTruthy(); expect(findNoteByTitle(searchResults, "Vienna")).toBeTruthy();
}); });
it.skip("normal search looks also at type and mime", () => { it("normal search looks also at type and mime", () => {
rootNote.child(note("Effective Java", { type: "book", mime: "" })).child(note("Hello World.java", { type: "code", mime: "text/x-java" })); rootNote.child(note("Effective Java", { type: "book", mime: "" })).child(note("Hello World.java", { type: "code", mime: "text/x-java" }));
const searchContext = new SearchContext(); const searchContext = new SearchContext();
@ -69,7 +69,7 @@ describe("Search", () => {
expect(searchResults.length).toEqual(2); expect(searchResults.length).toEqual(2);
}); });
it.skip("only end leafs are results", () => { it("only end leafs are results", () => {
rootNote.child(note("Europe").child(note("Austria"))); rootNote.child(note("Europe").child(note("Austria")));
const searchContext = new SearchContext(); const searchContext = new SearchContext();
@ -79,7 +79,7 @@ describe("Search", () => {
expect(findNoteByTitle(searchResults, "Europe")).toBeTruthy(); expect(findNoteByTitle(searchResults, "Europe")).toBeTruthy();
}); });
it.skip("only end leafs are results", () => { it("only end leafs are results", () => {
rootNote.child(note("Europe").child(note("Austria").label("capital", "Vienna"))); rootNote.child(note("Europe").child(note("Austria").label("capital", "Vienna")));
const searchContext = new SearchContext(); const searchContext = new SearchContext();
@ -132,7 +132,7 @@ describe("Search", () => {
expect(findNoteByTitle(searchResults, "Czech Republic")).toBeTruthy(); expect(findNoteByTitle(searchResults, "Czech Republic")).toBeTruthy();
}); });
it.skip("inherited label comparison", () => { it("inherited label comparison", () => {
rootNote.child(note("Europe").label("country", "", true).child(note("Austria")).child(note("Czech Republic"))); rootNote.child(note("Europe").label("country", "", true).child(note("Austria")).child(note("Czech Republic")));
const searchContext = new SearchContext(); const searchContext = new SearchContext();
@ -527,7 +527,7 @@ describe("Search", () => {
expect(becca.notes[searchResults[0].noteId].title).toEqual("Europe"); expect(becca.notes[searchResults[0].noteId].title).toEqual("Europe");
}); });
it.skip("test note.text *=* something", () => { it("test note.text *=* something", () => {
const italy = note("Italy").label("capital", "Rome"); const italy = note("Italy").label("capital", "Rome");
const slovakia = note("Slovakia").label("capital", "Bratislava"); const slovakia = note("Slovakia").label("capital", "Bratislava");
@ -540,7 +540,7 @@ describe("Search", () => {
expect(becca.notes[searchResults[0].noteId].title).toEqual("Slovakia"); expect(becca.notes[searchResults[0].noteId].title).toEqual("Slovakia");
}); });
it.skip("test that fulltext does not match archived notes", () => { it("test that fulltext does not match archived notes", () => {
const italy = note("Italy").label("capital", "Rome"); const italy = note("Italy").label("capital", "Rome");
const slovakia = note("Slovakia").label("capital", "Bratislava"); const slovakia = note("Slovakia").label("capital", "Bratislava");