UNPKG

@sil/args

Version:
26 lines (20 loc) 608 B
import { processFiles } from "./process"; describe('Process files', () => { it('Should get the data, if a string is a link to a file', () => { const args = { test: true, config: './src/test/config.json', someObject: ["henk", "peter", 5], anotherTestOr: ["so", 5, "aaaa", true], }; const expected = { ...args, configData: { test: 'test', data: 'data', } } const result = processFiles(args); expect(result).toEqual(expected); }) });