aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/index_test.js
blob: 969c3a10209180c4f362163d7b485883170bd199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
    assert.ok(root.Connection);
    assert.ok(root.Resources);
    assert.ok(root.Resources.Calendar);
  });

});