Skip to content

Commit 0a3ffeb

Browse files
authored
fix: Remove program.inp from console log output (#352)
1 parent c925166 commit 0a3ffeb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

index.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ describe('CLI', () => {
4242

4343
runCLI(['node', 'index.js', '-i', input]);
4444

45-
expect(mockConsoleLog).toHaveBeenCalledWith('program.input', input);
4645
expect(printTableFromInp).toHaveBeenCalledWith(input, undefined);
4746
});
4847

@@ -54,7 +53,6 @@ describe('CLI', () => {
5453

5554
runCLI(['node', 'index.js', '-i', input, '-t', tableOptions]);
5655

57-
expect(mockConsoleLog).toHaveBeenCalledWith('program.input', input);
5856
expect(printTableFromInp).toHaveBeenCalledWith(input, tableOptions);
5957
});
6058

index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export function runCLI(argv: string[] = process.argv) {
1616
const options = program.opts();
1717

1818
if (options.input) {
19-
console.log('program.input', options.input);
2019
printTableFromInp(options.input, options.tableOptions);
2120
} else if (options.stdin) {
2221
printTableFromInp(fs.readFileSync(0).toString(), options.tableOptions);

0 commit comments

Comments
 (0)