aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testing.js')
-rw-r--r--tests/testing.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testing.js b/tests/testing.js
index ac413c8..0e371d9 100644
--- a/tests/testing.js
+++ b/tests/testing.js
@@ -1,9 +1,12 @@
+var q = require("q");
+
+
exports.test = test;
function test(name, func) {
it(name, function(done) {
var result = func();
- result.then(function() {
+ q.when(result).then(function() {
done()
}).done();
});