mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
test: normalize ripgrep path assertion on windows
This commit is contained in:
parent
771b29a857
commit
e30678a088
@ -51,7 +51,7 @@ describe("file.ripgrep", () => {
|
||||
})
|
||||
|
||||
expect(hits.length).toBe(1)
|
||||
expect(hits[0]?.path.text).toBe("match.ts")
|
||||
expect(path.basename(hits[0]?.path.text ?? "")).toBe("match.ts")
|
||||
expect(hits[0]?.line_number).toBe(1)
|
||||
expect(hits[0]?.lines.text).toContain("needle")
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user