diff --git a/src/commands/eslint/test.ts b/src/commands/eslint/test.ts index 99bc9ea..b2a264c 100644 --- a/src/commands/eslint/test.ts +++ b/src/commands/eslint/test.ts @@ -12,22 +12,22 @@ describe('eslint command', () => { it('shows help output', async () => { expect(await getCommandOutput(parser, 'eslint --help')) .toMatchInlineSnapshot(` - "ouxe eslint + "ouxe eslint - Opinionated eslint configuration + Opinionated eslint configuration - Modifiers: - --lint-staged, -l Setup eslint to run on every commit [boolean] + Modifiers: + --lint-staged, -l Setup eslint to run on every commit [boolean] - Options: - --help Show help [boolean] - --version Show version number [boolean]" - `) + Options: + --help Show help [boolean] + --version Show version number [boolean]" + `) }) it('shows version', async () => { - expect( - await getCommandOutput(parser, 'eslint --version'), - ).toMatchInlineSnapshot(`"1.0.3"`) + expect(await getCommandOutput(parser, 'eslint --version')).toMatch( + /\d+\.\d+\.\d+/, + ) }) })