Skip to content

Commit

Permalink
test: remove relPath
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjan authored and okonet committed Aug 1, 2019
1 parent add7ef9 commit 710be31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/generateTasks.spec.js
Expand Up @@ -202,8 +202,7 @@ describe('generateTasks Special Cases', () => {
})

it('should not match non-children files', async () => {
const relPath = path.join(process.cwd(), '..')
const result = await generateTasks({ config, gitDir: relPath, files: filesSpecialCases })
const result = await generateTasks({ config, gitDir, files: filesSpecialCases })
const linter = result.find(item => item.pattern === '*.js')
expect(linter).toEqual({
pattern: '*.js',
Expand All @@ -216,8 +215,8 @@ describe('generateTasks Special Cases', () => {
})

it('should match non-children files when configured', async () => {
const relPath = path.join(process.cwd(), '..')
const result = await generateTasks({ config, gitDir: relPath, files: filesSpecialCases })
// const relPath = path.join(process.cwd(), '..')
const result = await generateTasks({ config, gitDir, files: filesSpecialCases })
const linter = result.find(item => item.pattern === '../**/*.py')
expect(linter).toEqual({
pattern: '../**/*.py',
Expand Down

0 comments on commit 710be31

Please sign in to comment.