Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
dataframe-import
/
File Content:
utils.test.ts
import { formatFileTypes } from './utils'; describe('Dataframe import / Utils', () => { describe('formatFileTypes', () => { it('should nicely format file extensions', () => { expect( formatFileTypes({ 'text/plain': ['.csv', '.txt'], 'application/json': ['.json'], }) ).toBe('.csv, .txt or .json'); }); it('should remove duplicates', () => { expect( formatFileTypes({ 'text/plain': ['.csv', '.txt'], 'application/json': ['.json', '.txt'], }) ).toBe('.csv, .txt or .json'); }); it('should nicely format a single file type extension', () => { expect( formatFileTypes({ 'text/plain': ['.txt'], }) ).toBe('.txt'); }); it('should nicely format two file type extension', () => { expect( formatFileTypes({ 'text/plain': ['.txt', '.csv'], }) ).toBe('.txt or .csv'); }); }); });
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
constants.ts
465 bytes
0644
index.ts
54 bytes
0644
types.ts
123 bytes
0644
utils.test.ts
981 bytes
0644
utils.ts
1837 bytes
0644
N4ST4R_ID | Naxtarrr