Skip to content

Commit

Permalink
fix(tests): Alter tests to reflect the module's originally intended b…
Browse files Browse the repository at this point in the history
…ehavior
  • Loading branch information
ta2edchimp committed Mar 19, 2016
1 parent 14a9de7 commit ffb0f16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let rules = []
const processCwd = process.cwd
const processExit = process.exit
const consoleLog = console.log // eslint-disable-line no-console
const noSpecifiedFile = './fixtures/no-path'
const noSpecifiedFile = path.resolve(process.cwd(), './fixtures/no-path')
const specifiedFile = './fixtures/.eslintrc.js'
const mainFile = path.join(process.cwd(), specifiedFile)
const extendingFile = './fixtures/extending-config.json'
Expand Down
5 changes: 5 additions & 0 deletions test/fixtures/no-path/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
rules: {
'no-alert': [2],
},
}
1 change: 1 addition & 0 deletions test/fixtures/no-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"description": "Simulating a project's package.json.",
"private": true,
"main": "./index.js",
"eslintConfig": {
"rules": {
"no-console": [2]
Expand Down

0 comments on commit ffb0f16

Please sign in to comment.