From bd8b2786247308c7bd82dc3cda627a23b4898958 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 17:35:15 +0100 Subject: Implement reading of hyperlink elements --- tests/testing.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/testing.js') 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 }; } -- cgit v1.2.3