From 0b4733ebb28368198b747079d51033a7eeb1f276 Mon Sep 17 00:00:00 2001 From: James Lal Date: Mon, 6 May 2013 21:18:31 -0700 Subject: Initial error refactoring (make errors less HTTP specific) --- test/caldav/http/basic_auth_test.js | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'test/caldav/http') diff --git a/test/caldav/http/basic_auth_test.js b/test/caldav/http/basic_auth_test.js index 566de08..a264d1b 100644 --- a/test/caldav/http/basic_auth_test.js +++ b/test/caldav/http/basic_auth_test.js @@ -39,19 +39,24 @@ suite('http/basic_auth', function() { assert.equal(subject.url, url); }); - test('#send', function() { - var xhr = subject.send(); - - assert.deepEqual( - xhr.openArgs, - [ - 'GET', - url, - subject.async, - connection.user, - connection.password - ] - ); + suite('#send', function() { + test('success', function() { + var xhr = subject.send(); + + assert.deepEqual( + xhr.openArgs, + [ + 'GET', + url, + subject.async, + connection.user, + connection.password + ] + ); + }); + + + }); }); -- cgit