diff options
author | James Lal <james@lightsofapollo.com> | 2014-02-04 15:57:18 -0800 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2014-02-04 15:57:18 -0800 |
commit | c197deab25d8425bdfa8d8d2feccedbb2776a48e (patch) | |
tree | 369facb7640d826eee46af6ce63fcacf55557366 | |
parent | 09d9ad3f92edec992bd1ab2e6a1c505f16bf22de (diff) | |
parent | ef4cd2cfe124c8a8130110a0d0c06b7d6851d27b (diff) | |
download | jsCalDAV-c197deab25d8425bdfa8d8d2feccedbb2776a48e.tar.gz |
Merge pull request #20 from gaye/rez-server-tests
Resurrect server-specific tests r=lightsofapollo
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | lib/caldav/connection.js | 3 |
2 files changed, 13 insertions, 2 deletions
@@ -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 |