mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-17 23:52:36 +00:00
test: realpath both sides of cwdGitRoot assertion for Windows 8.3 short-name compat
Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/b2a1c6a3-e454-4b87-b0e4-69d7c0d9a51b Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
This commit is contained in:
parent
144f8bb54b
commit
2b89c80240
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ describe('checkCwdMatch', () => {
|
|||
// symlink and on Windows expands short 8.3 names. Compare
|
||||
// against `fs.realpathSync` so the assertion is portable.
|
||||
expect(m.entry?.path).toBe(path.resolve(indexed.dbPath));
|
||||
expect(m.cwdGitRoot).toBe(fs.realpathSync(sibling.dbPath));
|
||||
expect(fs.realpathSync(m.cwdGitRoot!)).toBe(fs.realpathSync(sibling.dbPath));
|
||||
expect(m.hint).toBeTruthy();
|
||||
} finally {
|
||||
await indexed.cleanup();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue