aboutsummaryrefslogtreecommitdiffstats
path: root/test-agent-server.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-06-27 19:28:37 +0200
committerJames Lal <james@lightsofapollo.com>2012-06-27 19:28:37 +0200
commitd76e26ac16c16ca30a9c177fa292f5cdf184955e (patch)
treefbc9e6df292440b689d1990911edd802e618df43 /test-agent-server.js
parent1c136b249274a3cad047e043693c6e643892b6a9 (diff)
downloadjsCalDAV-d76e26ac16c16ca30a9c177fa292f5cdf184955e.tar.gz
initial move to support web js
Diffstat (limited to 'test-agent-server.js')
-rw-r--r--test-agent-server.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-agent-server.js b/test-agent-server.js
new file mode 100644
index 0000000..495dd2a
--- /dev/null
+++ b/test-agent-server.js
@@ -0,0 +1,12 @@
+//all require paths must be absolute -- use __dirname
+var Agent = require('test-agent'),
+ Apps = Agent.server,
+ Suite = Agent.Suite,
+ suite = new Suite({
+ path: __dirname,
+ testDir: 'test/webcals/',
+ libDir: 'lib/webcals/',
+ testSuffix: '_test.js'
+ });
+
+server.use(Apps.Suite, suite);