Skip to content

Commit

Permalink
feat: add better test
Browse files Browse the repository at this point in the history
  • Loading branch information
john-d-pelingo committed Dec 1, 2020
1 parent 9d528bf commit 2ab66a4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/eslint-config/__tests__/validate-config.js
Expand Up @@ -8,11 +8,16 @@ test('load config in eslint to validate all rule syntax is correct', (t) => {
})

const code = `
const greet = (name) => {
console.log(\`Hello, \${name}!\`)
const { getName } = require('lib')
const { exclamationMark } = require('./const')
const greet = () => {
const name = getName()
console.log(\`Hello, \${name}\${exclamationMark}\`)
}
greet('John')
greet()
`

const result = cli.executeOnText(code)
Expand Down

0 comments on commit 2ab66a4

Please sign in to comment.