Download mods/diff/tests/fixtures/old-files.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/tests/fixtures/old-files.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/tests/fixtures/old-files.ts
-
curl -L -o old-files.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/tests/fixtures/old-files.ts
459 Bytes
| import type { On } from 'claude-code' | |
| /** | |
| * Answers `$.fs` over /work holding MOVED_IN's two files, both last | |
| * written at time 0, before any session began. | |
| * | |
| * @param on the test's `on` | |
| */ | |
| export function oldFiles(on: On) { | |
| on('fs.list', () => ({ | |
| value: [ | |
| { name: 'old.ts', kind: 'file', size: 2 }, | |
| { name: 'moved.ts', kind: 'file', size: 2 }, | |
| ], | |
| })) | |
| on('fs.stat', () => ({ value: { kind: 'file', size: 2, mtimeMs: 0 } })) | |
| } | |