bolt.diy / app /utils /diff.spec.ts
aproli90's picture
Upload 289 files
2e1ab99 verified
raw
history blame
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');
});
});