From ef4cd2cfe124c8a8130110a0d0c06b7d6851d27b Mon Sep 17 00:00:00 2001 From: Gareth Aye Date: Tue, 4 Feb 2014 13:05:45 -0500 Subject: Resurrect server-specific tests --- README.md | 12 +++++++++++- lib/caldav/connection.js | 3 ++- 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 +``` + +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 -- cgit