aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-01 17:35:15 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-01 17:35:15 +0100
commitbd8b2786247308c7bd82dc3cda627a23b4898958 (patch)
treee30fc62c22bbb0dc358155c5c0caebb126688091 /tests/testing.js
parent25109ca7e318e188229cac92552ba0dcd7e897a1 (diff)
Implement reading of hyperlink elements
Diffstat (limited to 'tests/testing.js')
-rw-r--r--tests/testing.js9
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
};
}