Spaces:
Runtime error
Runtime error
File size: 343 Bytes
2e1ab99 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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');
});
});
|