aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testing.js')
-rw-r--r--tests/testing.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testing.js b/tests/testing.js
new file mode 100644
index 0000000..ac413c8
--- /dev/null
+++ b/tests/testing.js
@@ -0,0 +1,10 @@
+exports.test = test;
+
+function test(name, func) {
+ it(name, function(done) {
+ var result = func();
+ result.then(function() {
+ done()
+ }).done();
+ });
+}