diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-06 21:24:22 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-06 21:24:22 -0700 |
commit | d67f226d11b84f39c2bda7b9a6ef95ea7dafa337 (patch) | |
tree | 39028d73304f54b05d879f3adbcea3680f1a3316 /lib | |
parent | 619241a08ec736303324211e36ea7dafc4f46c51 (diff) | |
download | jsCalDAV-d67f226d11b84f39c2bda7b9a6ef95ea7dafa337.tar.gz |
Initial mocking support for mock requests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/caldav/caldav.js | 1 | ||||
-rw-r--r-- | lib/caldav/request/calendar_home.js | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/caldav/caldav.js b/lib/caldav/caldav.js index f0afe0a..065b815 100644 --- a/lib/caldav/caldav.js +++ b/lib/caldav/caldav.js @@ -42,7 +42,6 @@ * Maps exports to a file path. */ set exports(val) { - console.log(paths); return paths[this.path] = val; }, diff --git a/lib/caldav/request/calendar_home.js b/lib/caldav/request/calendar_home.js index da51740..f4f80ac 100644 --- a/lib/caldav/request/calendar_home.js +++ b/lib/caldav/request/calendar_home.js @@ -1,8 +1,5 @@ (function(module, ns) { - var Propfind = ns.require('request/propfind'); - - /** * Creates a propfind request. * @@ -51,8 +48,10 @@ CalendarHome.prototype = { + Propfind: ns.require('request/propfind'), + _findPrincipal: function(url, callback) { - var find = new Propfind(this.connection, { + var find = new this.Propfind(this.connection, { url: url }); @@ -78,7 +77,7 @@ _findCalendarHome: function(url, callback) { var details = {}; - var find = new Propfind(this.connection, { + var find = new this.Propfind(this.connection, { url: url }); @@ -105,7 +104,6 @@ */ send: function(callback) { var self = this; - // find principal self._findPrincipal(self.url, function(err, url) { if (!url) { |