Download app/utils/diff.spec.ts from Boobs00/newbolt-2: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/spaces/Boobs00/newbolt-2/resolve/main/app/utils/diff.spec.ts
- Command line
-
hf download hf://spaces/Boobs00/newbolt-2/app/utils/diff.spec.ts
-
curl -L -o diff.spec.ts https://huggingface.co/spaces/Boobs00/newbolt-2/resolve/main/app/utils/diff.spec.ts
343 Bytes
| import { describe, expect, it } from 'vitest'; | |
| import { extractRelativePath } from './diff'; | |
| import { WORK_DIR } from './constants'; | |
| describe('Diff', () => { | |
| it('should strip out Work_dir', () => { | |
| const filePath = `${WORK_DIR}/index.js`; | |
| const result = extractRelativePath(filePath); | |
| expect(result).toBe('index.js'); | |
| }); | |
| }); | |