Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added gitignore

  • Loading branch information...
commit 476febfb8a8c7b3202ea0ba1a1fa489bfd4c2a22 1 parent 7868314
authored January 04, 2012
1  .gitignore
... ...
@@ -0,0 +1 @@
  1
+.idea
11  testing/tests/RequestTest.js
@@ -294,9 +294,8 @@ module.exports["basics"] = testCase({
294 294
     "test getBodyObject success": function(test) {
295 295
 
296 296
         var bodyObj = {};
297  
-        var pipe = new Pipe();
298 297
 
299  
-        var request = new Request('POST', '/yomama', {}, pipe);
  298
+        var request = new Request('POST', '/yomama', {});
300 299
 
301 300
         request.getBodyObject().then(
302 301
             function(obj) {
@@ -305,14 +304,12 @@ module.exports["basics"] = testCase({
305 304
             }).end();
306 305
 
307 306
         // stream the request body
308  
-        pipe.end(JSON.stringify(bodyObj), 'utf8');
  307
+        request.getBodyStream().end(JSON.stringify(bodyObj), 'utf8');
309 308
     },
310 309
 
311 310
     "test getBodyObject bad JSON": function(test) {
312 311
 
313  
-        var pipe = new Pipe();
314  
-
315  
-        var request = new Request('POST', '/yomama', {}, pipe);
  312
+        var request = new Request('POST', '/yomama', {});
316 313
 
317 314
         request.getBodyObject().then(null,
318 315
             function(err) {
@@ -321,6 +318,6 @@ module.exports["basics"] = testCase({
321 318
             }).end();
322 319
 
323 320
         // stream the request body
324  
-        pipe.end('yo, what gives?', 'utf8');
  321
+        request.getBodyStream().end('yo, what gives?', 'utf8');
325 322
     }
326 323
 });

0 notes on commit 476febf

Please sign in to comment.
Something went wrong with that request. Please try again.