Skip to content

Commit

Permalink
✅ Update test to not depend on package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurickh committed Nov 13, 2019
1 parent e3c5693 commit ebf49b6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/commands/eslint/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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+/,
)
})
})

0 comments on commit ebf49b6

Please sign in to comment.