aboutsummaryrefslogtreecommitdiffstats
path: root/test/caldav/request/resources_test.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-08 13:40:48 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-08 13:40:48 -0700
commitdee456f357eb2c373988f7bc987eeabb8357050e (patch)
tree3ccec1f73f16155037dacf8fc311d438b450b55f /test/caldav/request/resources_test.js
parentf3bc5aa84e85167ce1b03df312a93517264f54ef (diff)
downloadjsCalDAV-dee456f357eb2c373988f7bc987eeabb8357050e.tar.gz
Hooking up calendar query to calendar resource
Diffstat (limited to 'test/caldav/request/resources_test.js')
-rw-r--r--test/caldav/request/resources_test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/caldav/request/resources_test.js b/test/caldav/request/resources_test.js
index ecea34a..19bebba 100644
--- a/test/caldav/request/resources_test.js
+++ b/test/caldav/request/resources_test.js
@@ -92,10 +92,14 @@ suite('caldav/resource_finder', function() {
});
assert.ok(result.calendar['a']);
- assert.instanceOf(result.calendar['a'], Handler);
+
+ var cal = result.calendar['a'];
+
+ assert.instanceOf(cal, Handler);
assert.equal(Object.keys(result.calendar).length, 1);
- assert.equal(result.calendar['a'].args[1].name.value, '1');
+ assert.equal(cal.args[1].name.value, '1');
+ assert.equal(cal.url, 'a');
});
});