From e6fab580162a1cae2165ef88e254df284e6c7208 Mon Sep 17 00:00:00 2001 From: James Lal Date: Fri, 6 Jul 2012 13:20:00 -0700 Subject: spec out calendar resource --- test/caldav/ical_test.js | 1 - test/caldav/index_test.js | 8 ++++---- test/caldav/resources/calendar_test.js | 11 +++++++++++ test/caldav/sax/dav_response_test.js | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 test/caldav/resources/calendar_test.js (limited to 'test') diff --git a/test/caldav/ical_test.js b/test/caldav/ical_test.js index 9c7763e..61d6c07 100644 --- a/test/caldav/ical_test.js +++ b/test/caldav/ical_test.js @@ -5,7 +5,6 @@ suite('caldav/ics', function() { var ical; suiteSetup(function() { - console.log(Caldav); ical = Caldav.require('ical'); }); diff --git a/test/caldav/index_test.js b/test/caldav/index_test.js index fb6e7a7..4fd13f8 100644 --- a/test/caldav/index_test.js +++ b/test/caldav/index_test.js @@ -5,7 +5,7 @@ if (typeof(window) !== 'undefined') { suite('caldav', function() { var root; var isNode = typeof(window) === 'undefined'; - + suiteSetup(function() { if (isNode) { root = require('../../lib/caldav'); @@ -13,14 +13,14 @@ suite('caldav', function() { root = Caldav; } }); - + suite('browser', function() { if (isNode) return; - + test('sax', function() { assert.ok(sax); - }) + }); }); test('namespaces', function() { diff --git a/test/caldav/resources/calendar_test.js b/test/caldav/resources/calendar_test.js new file mode 100644 index 0000000..312d8f7 --- /dev/null +++ b/test/caldav/resources/calendar_test.js @@ -0,0 +1,11 @@ +testSupport.lib('resources/calendar'), + +suite('caldav/resources/calendar', function() { + + var Calendar; + + suiteSetup(function() { + Calendar = Caldav.require('resources/calendar'); + }); + +}); diff --git a/test/caldav/sax/dav_response_test.js b/test/caldav/sax/dav_response_test.js index 47adca0..f9243e8 100644 --- a/test/caldav/sax/dav_response_test.js +++ b/test/caldav/sax/dav_response_test.js @@ -52,7 +52,7 @@ suite('caldav/sax/dav_response', function() { 'current-user-principal': { status: '404', - value: {} + value: null } }, -- cgit