mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 19:51:36 +08:00
fix(test): wrong jasmine-based context
This commit is contained in:
parent
3f92966976
commit
d19e9b4681
@ -184,8 +184,7 @@ describe("Search", () => {
|
||||
|
||||
function test(query: string, expectedResultCount: number) {
|
||||
const searchResults = searchService.findResultsWithQuery(query, searchContext);
|
||||
expect(searchResults.length)
|
||||
.withContext(`While searching for ${query} got unexpected result: [${searchResults.join(", ")}]`)
|
||||
expect(searchResults.length, `While searching for ${query} got unexpected result: [${searchResults.join(", ")}]`)
|
||||
.toEqual(expectedResultCount);
|
||||
|
||||
if (expectedResultCount === 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user