aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-09-19 11:32:01 -0700
committerJames Lal <james@lightsofapollo.com>2012-09-19 11:32:01 -0700
commite5aaf7365f2b0ea0160357e5e1a4ee47379d372a (patch)
tree14251e6aee59d1b0b82a3e9fe7070d21ed3603a5 /test
parent0cac01e4243b112f3c0820c89d9de2bf38005c79 (diff)
downloadjsCalDAV-e5aaf7365f2b0ea0160357e5e1a4ee47379d372a.tar.gz
add #hasProp, #removeProp from Request.Propfind closes #4
Diffstat (limited to 'test')
-rw-r--r--test/caldav/request/propfind_test.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/caldav/request/propfind_test.js b/test/caldav/request/propfind_test.js
index 58677f4..d38cb5a 100644
--- a/test/caldav/request/propfind_test.js
+++ b/test/caldav/request/propfind_test.js
@@ -51,12 +51,15 @@ suite('caldav/request/propfind', function() {
assert.equal(subject.xhr.method, 'PROPFIND');
});
- test('#prop', function() {
+ test('#(has|remove)prop', function() {
var expected = subject.template.tag('test');
subject.prop('test');
assert.deepEqual(subject._props, [expected]);
+ assert.isTrue(subject.hasProp('test'), 'has prop');
+ subject.removeProp('test');
+ assert.isFalse(subject.hasProp('test'), 'removed prop');
});
test('.depth', function() {