diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-06 08:13:15 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-06 08:13:15 -0700 |
commit | 20711f003e97a4a57d1e2838ba78a994c5faf6c0 (patch) | |
tree | b060e5de05a9ffefc2ec836469c087fffa99dcef /test/caldav/index_test.js | |
parent | c8e85fe1e0a1d2e15df580068244324ff536a23a (diff) | |
download | jsCalDAV-20711f003e97a4a57d1e2838ba78a994c5faf6c0.tar.gz |
webcals -> caldav rename (yes, back again)
Diffstat (limited to 'test/caldav/index_test.js')
-rw-r--r-- | test/caldav/index_test.js | 33 |
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); + }); + +}); |