diff options
Diffstat (limited to 'tests/testing.js')
| -rw-r--r-- | tests/testing.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/testing.js b/tests/testing.js index f2cf55a..af8ec94 100644 --- a/tests/testing.js +++ b/tests/testing.js @@ -23,10 +23,15 @@ function testData(testDataPath) { function createFakeDocxFile(files) { function read(path) { - return files[path]; + return q.when(files[path]); + } + + function exists(path) { + return !!files[path]; } return { - read: read + read: read, + exists: exists }; } |
