mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-27 22:33:03 +00:00
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
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');
|
|
});
|
|
});
|