Skip to content

Commit 7576c9e

Browse files
committed
Use absolute path in tests
1 parent 098eac1 commit 7576c9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var eslint = require('eslint')
22
var Linter = require('../').linter
3+
var path = require('path')
34
var test = require('tape')
45

56
function getStandard () {
@@ -14,7 +15,7 @@ function getStandard () {
1415
test('api: lintFiles', function (t) {
1516
t.plan(3)
1617
var standard = getStandard()
17-
standard.lintFiles([], { cwd: '../bin' }, function (err, result) {
18+
standard.lintFiles([], { cwd: path.join(__dirname, '../bin') }, function (err, result) {
1819
t.error(err, 'no error while linting')
1920
t.equal(typeof result, 'object', 'result is an object')
2021
t.equal(result.errorCount, 0)

0 commit comments

Comments
 (0)