test(server): allow either valid file-search match (#9720)
This commit is contained in:
1 parent
108f295cc3
commit
8ccb933a8a
1 file changed
+4
-1
@@ -218,7 +218,10 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceEntries", (it) => {
|
||||
kind: "file",
|
||||
});
|
||||
|
||||
expect(result.entries).toEqual([{ path: "src/index.ts", kind: "file" }]);
|
||||
// Native ranking can put either matching file first.
|
||||
expect(result.entries).toHaveLength(1);
|
||||
expect(result.entries[0]?.kind).toBe("file");
|
||||
expect(["src/index.ts", "src/internal.ts"]).toContain(result.entries[0]?.path);
|
||||
expect(result.truncated).toBe(true);
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user