aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/request/calendar_home_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/caldav/request/calendar_home_test.js')
-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);
+ });
+
+});
+