From 1d469363e9d6894ad5ed709cc12cb44c5d750396 Mon Sep 17 00:00:00 2001 From: Elad Ossadon Date: Mon, 23 Sep 2019 14:06:05 -0700 Subject: [PATCH] remove async; fix test --- src/index.ts | 2 +- test/tests/lint/tsdx-lint.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 12dcea6c6..e0c28827e 100755 --- a/src/index.ts +++ b/src/index.ts @@ -487,7 +487,7 @@ prog .option('--write-file', 'Write the config file locally') .example('lint --write-file') .action( - async (opts: { + (opts: { fix: boolean; 'ignore-pattern': string; 'write-file': boolean; diff --git a/test/tests/lint/tsdx-lint.test.js b/test/tests/lint/tsdx-lint.test.js index a970c051a..cd2f6fd26 100644 --- a/test/tests/lint/tsdx-lint.test.js +++ b/test/tests/lint/tsdx-lint.test.js @@ -47,7 +47,7 @@ describe('tsdx lint', () => { it('should not lint', () => { const output = shell.exec(`node dist/index.js lint`); expect(output.code).toBe(1); - expect(output.toString()).toContain('No input files specified.'); + expect(output.toString()).toContain('No input files specified, defaulting to src test'); }); describe('when --write-file is used', () => {