Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 42770dd

Browse files
committed
Allow tests to be run from outside test dir.
1 parent 93eed5d commit 42770dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
var fs = require('fs');
22
var path = require('path');
3-
var parser = require('../lib');
3+
var parser = require(__dirname + '/../lib');
44
var assert = require('assert');
55

6-
var fixturesPath = './fixtures';
6+
var fixturesPath = __dirname + '/fixtures';
77

88
fs.readdir(fixturesPath, function(err, files) {
99
for (var i in files) {

0 commit comments

Comments
 (0)