fix(test): wrong jasmine-based context

This commit is contained in:
Elian Doran 2025-01-17 22:29:44 +02:00
parent 3f92966976
commit d19e9b4681
No known key found for this signature in database

View File

@ -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) {