Skip to content

Commit

Permalink
chore: Put test fixtures in one directory
Browse files Browse the repository at this point in the history
This test fixture was for a success case, and it was
outside of the fixtures directory. This change moves
it to the fixtures directory and renames it for clarity.

Semver: patch
Ref: LOG-8207
  • Loading branch information
darinspivey committed Dec 4, 2020
1 parent af0d489 commit f912dc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const fs = require('fs')
const {promisify} = require('util')
const {test, threw} = require('tap')
const {CLIEngine} = require('eslint')
const CODE = path.join(__dirname, 'fixture')
const VALID_CODE = path.join(__dirname, 'fixtures', 'valid-code')

const readFile = promisify(fs.readFile)
test('valid config', async (t) => {
const code = await readFile(CODE, 'utf8')
const code = await readFile(VALID_CODE, 'utf8')
const cli = new CLIEngine({
useEslintrc: false
, configFile: 'eslintrc.json'
Expand Down
File renamed without changes.

0 comments on commit f912dc1

Please sign in to comment.