aboutsummaryrefslogtreecommitdiffstats
path: root/test/webcals/xhr_test.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-06-26 07:21:43 +0200
committerJames Lal <james@lightsofapollo.com>2012-06-26 07:21:43 +0200
commit646e0b6991c9e85de9b8eee20e601079fb128429 (patch)
treecdd2a21d7816936556eab9f99dd32e8914c2a426 /test/webcals/xhr_test.js
parent96683161e43fc0101c74f0875d1a2d445afe7e8d (diff)
downloadjsCalDAV-646e0b6991c9e85de9b8eee20e601079fb128429.tar.gz
abstract request
Diffstat (limited to 'test/webcals/xhr_test.js')
-rw-r--r--test/webcals/xhr_test.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/webcals/xhr_test.js b/test/webcals/xhr_test.js
index 2ac2dbb..33f692d 100644
--- a/test/webcals/xhr_test.js
+++ b/test/webcals/xhr_test.js
@@ -58,12 +58,10 @@ suite('webacls/xhr', function() {
var data = '<html></html>',
url = 'http://foo',
xhr,
- responseData,
responseXhr;
function callback(done, data, xhr) {
responseXhr = xhr;
- responseData = data;
done();
}
@@ -98,10 +96,9 @@ suite('webacls/xhr', function() {
setup(function() {
responseXhr = null;
- responseData = null;
});
- suite('when xhr is a success and responds /w json', function() {
+ suite('when xhr is a success and responds /w data', function() {
var response = '<html></html>', cb;
setup(function(done) {
@@ -129,7 +126,6 @@ suite('webacls/xhr', function() {
test('should send callback parsed data and xhr', function() {
assert.equal(responseXhr, subject.xhr);
- assert.deepEqual(responseData, response);
});
opensXHR();