diff options
author | James Lal <james@lightsofapollo.com> | 2012-06-26 12:41:13 +0200 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-06-26 12:41:13 +0200 |
commit | 95d50ef280c46ce6a29454285ccd7fc42cbcac61 (patch) | |
tree | c9516585ef17fdf00228b1c8533c5d2fa1c88a3a /test | |
parent | 10900e01370c1fd4d147168cdc30ed81a77dcf44 (diff) | |
download | jsCalDAV-95d50ef280c46ce6a29454285ccd7fc42cbcac61.tar.gz |
Add process result so we can have cleaner propfind results
Diffstat (limited to 'test')
-rw-r--r-- | test/webcals/request/propfind_test.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/webcals/request/propfind_test.js b/test/webcals/request/propfind_test.js index 998fd2f..6d2dbe7 100644 --- a/test/webcals/request/propfind_test.js +++ b/test/webcals/request/propfind_test.js @@ -77,6 +77,22 @@ suite('webcals/request/propfind', function() { assert.equal(subject._createPayload(), expected); }); + test('#_processResult', function(done) { + var inner = {}, + req = {}; + + subject.sax.root = { + multistatus: inner + }; + + subject._processResult(req, function(err, obj, xhr) { + assert.equal(xhr, req); + assert.equal(obj, inner); + assert.equal(err, null); + done(); + }); + }); + suite('integration', function() { var xml, data, @@ -101,8 +117,7 @@ suite('webcals/request/propfind', function() { }); test('simple tree', function() { - assert.ok(data.multistatus); - assert.ok(data.multistatus['/calendar/user/']); + assert.ok(data['/calendar/user/']); }); }); |