Skip to content

Commit

Permalink
Use absolute path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Apr 30, 2020
1 parent 098eac1 commit 7576c9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var eslint = require('eslint')
var Linter = require('../').linter
var path = require('path')
var test = require('tape')

function getStandard () {
Expand All @@ -14,7 +15,7 @@ function getStandard () {
test('api: lintFiles', function (t) {
t.plan(3)
var standard = getStandard()
standard.lintFiles([], { cwd: '../bin' }, function (err, result) {
standard.lintFiles([], { cwd: path.join(__dirname, '../bin') }, function (err, result) {
t.error(err, 'no error while linting')
t.equal(typeof result, 'object', 'result is an object')
t.equal(result.errorCount, 0)
Expand Down

0 comments on commit 7576c9e

Please sign in to comment.