diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-18 14:43:00 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-18 14:43:00 +0000 |
| commit | 1c815bea595037b9255bf1f11b4b3f90dbe7c1c2 (patch) | |
| tree | daa329078c14ff155ded2b4f5178c212a53ceaa5 /tests/testing.js | |
| parent | 800b14eed0c909c93a3271191ac93ad5a2d2057f (diff) | |
Fix and test CLI
Diffstat (limited to 'tests/testing.js')
| -rw-r--r-- | tests/testing.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testing.js b/tests/testing.js index 57bcb7e..9e64ca6 100644 --- a/tests/testing.js +++ b/tests/testing.js @@ -4,6 +4,7 @@ var promises = require("../lib/promises"); var _ = require("underscore"); exports.test = test; +exports.testPath = testPath; exports.testData = testData; exports.createFakeDocxFile = createFakeDocxFile; @@ -17,8 +18,12 @@ function test(name, func) { }); } +function testPath(filename) { + return path.join(__dirname, "test-data", filename); +} + function testData(testDataPath) { - var fullPath = path.join(__dirname, "test-data", testDataPath); + var fullPath = testPath(testDataPath); return promises.nfcall(fs.readFile, fullPath, "utf-8"); } |
