Skip to content

Commit 373f8c8

Browse files
authored
Refactor symlink resolution test descriptions
1 parent 0c34d76 commit 373f8c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/ignore/__tests__/RooIgnoreController.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ describe("RooIgnoreController", () => {
225225
})
226226

227227
/**
228-
* Tests symlink resolution - the simplest test for TOCTOU fix
228+
* Tests symlink resolution
229229
*/
230230
it("should block symlinks pointing to ignored files", () => {
231231
// Mock fsSync.realpathSync to simulate symlink resolution
@@ -241,7 +241,7 @@ describe("RooIgnoreController", () => {
241241
// Direct access to ignored file should be blocked
242242
expect(controller.validateAccess("node_modules/package.json")).toBe(false)
243243

244-
// Symlink to ignored file should also be blocked (TOCTOU fix)
244+
// Symlink to ignored file should also be blocked
245245
expect(controller.validateAccess("config.json")).toBe(false)
246246
})
247247
})

0 commit comments

Comments
 (0)