aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/request
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-06 16:48:14 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-06 16:48:14 -0700
commit1edfd60cccfdda4a21acbdef834f7b9db260af88 (patch)
treef0b9a1bd3516bf49be257ed77ffad7ab6c92a1f1 /test/caldav/request
parent8997061718d9990960dfea0ba58e88138f3b5a88 (diff)
downloadjsCalDAV-1edfd60cccfdda4a21acbdef834f7b9db260af88.tar.gz
Adding lightly tested calendar home resolver
Diffstat (limited to 'test/caldav/request')
-rw-r--r--test/caldav/request/calendar_home_test.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/caldav/request/calendar_home_test.js b/test/caldav/request/calendar_home_test.js
new file mode 100644
index 0000000..525d407
--- /dev/null
+++ b/test/caldav/request/calendar_home_test.js
@@ -0,0 +1,35 @@
+requireRequest();
+
+testSupport.lib('request/propfind');
+testSupport.lib('request/calendar_home');
+
+suite('caldav/request/propfind', function() {
+ var Propfind;
+ var Connection;
+ var Home;
+ var subject;
+ var con;
+
+ var url = 'http://google.com',
+ subject;
+
+ suiteSetup(function() {
+ Propfind = Caldav.require('request/propfind');
+ Connection = Caldav.require('connection');
+ Home = Caldav.require('request/calendar_home');
+ });
+
+ setup(function() {
+ con = new Connection();
+ subject = new Home(con, {
+ url: url
+ });
+ });
+
+ test('initialization', function() {
+ assert.equal(subject.url, url);
+ assert.equal(subject.connection, con);
+ });
+
+});
+