aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Aye <gaye@mozilla.com>2014-02-04 13:05:45 -0500
committerGareth Aye <gaye@mozilla.com>2014-02-04 13:05:45 -0500
commitef4cd2cfe124c8a8130110a0d0c06b7d6851d27b (patch)
tree369facb7640d826eee46af6ce63fcacf55557366
parent09d9ad3f92edec992bd1ab2e6a1c505f16bf22de (diff)
downloadjsCalDAV-ef4cd2cfe124c8a8130110a0d0c06b7d6851d27b.tar.gz
Resurrect server-specific tests
-rw-r--r--README.md12
-rw-r--r--lib/caldav/connection.js3
2 files changed, 13 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3e2aa59..c0a0a3a 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,19 @@
# CalDAV
Basis for all caldav operations in b2g calendar app but designed from
-ground up as a general purpose caldav library.
+ground up as a general purpose caldav library.
Tested against firefox nightly / b2g nightly / nodejs.
Should work under any modern browser but unless your browser
can support cross domain requests cros headers its usefulness
will be limited.
+
+### Server-specific tests
+
+We have a tiny collection of tests which can be pointed at specific servers. In order to run these, create a file called `servers.json` in `test/servers` following the JSON format in `test/servers/servers.json.tpl`. Then do
+
+```
+./index.js -s <server>
+```
+
+to run all of the tests!
diff --git a/lib/caldav/connection.js b/lib/caldav/connection.js
index 7262d06..8869571 100644
--- a/lib/caldav/connection.js
+++ b/lib/caldav/connection.js
@@ -1,6 +1,7 @@
(function(module, ns) {
- var XHR = ns.require('xhr');
+ var Caldav = ns.require('caldav'),
+ XHR = ns.require('xhr');
/**
* Connection objects contain