aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/index_test.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-06 08:13:15 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-06 08:13:15 -0700
commit20711f003e97a4a57d1e2838ba78a994c5faf6c0 (patch)
treeb060e5de05a9ffefc2ec836469c087fffa99dcef /test/caldav/index_test.js
parentc8e85fe1e0a1d2e15df580068244324ff536a23a (diff)
downloadjsCalDAV-20711f003e97a4a57d1e2838ba78a994c5faf6c0.tar.gz
webcals -> caldav rename (yes, back again)
Diffstat (limited to 'test/caldav/index_test.js')
-rw-r--r--test/caldav/index_test.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/caldav/index_test.js b/test/caldav/index_test.js
new file mode 100644
index 0000000..fb6e7a7
--- /dev/null
+++ b/test/caldav/index_test.js
@@ -0,0 +1,33 @@
+if (typeof(window) !== 'undefined') {
+ testSupport.require('/caldav');
+}
+
+suite('caldav', function() {
+ var root;
+ var isNode = typeof(window) === 'undefined';
+
+ suiteSetup(function() {
+ if (isNode) {
+ root = require('../../lib/caldav');
+ } else {
+ root = Caldav;
+ }
+ });
+
+ suite('browser', function() {
+ if (isNode)
+ return;
+
+ test('sax', function() {
+ assert.ok(sax);
+ })
+ });
+
+ test('namespaces', function() {
+ assert.ok(root);
+ assert.ok(root.Request);
+ assert.ok(root.Templates);
+ assert.ok(root.Xhr);
+ });
+
+});