Skip to content

Commit

Permalink
fix(tests): Fix mock up of referenced plugin
Browse files Browse the repository at this point in the history
Installing a real plugin locally only for testing purposes is not necessary anymore.
  • Loading branch information
ta2edchimp committed Mar 20, 2016
1 parent ae0bde2 commit 329947e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ const mainFile = path.join(process.cwd(), specifiedFile)
const extendingFile = './fixtures/extending-config.json'
const indexStub = {
'./index': () => rules,
'eslint-plugin-react': {
rules: {
'jsx-uses-react': true,
'no-multi-comp': true,
'prop-types': true,
},
'@noCallThru': true,
'@global': true,
},
}
function outputStatement() {
return `New rules to add to the config: ${rules.join(', ')}.`
Expand Down

0 comments on commit 329947e

Please sign in to comment.