mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
use reflow to migrate from flow to typescript
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { findParent } from './FileTree';
|
||||
|
||||
describe('find parent tests', () => {
|
||||
it('should return the parent path', () => {
|
||||
expect(findParent('src/main/js/')).toBe('src/main');
|
||||
expect(findParent('src/main/js')).toBe('src/main');
|
||||
expect(findParent('src/main')).toBe('src');
|
||||
expect(findParent('src')).toBe('');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user