File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ describe('writeCache', function() {
12
12
it ( 'should receive the request and cache data' , function ( done ) {
13
13
app = express ( ) ;
14
14
app . use ( proxy ( 'httpbin.org' , {
15
- cacheWrite : function ( req , cacheData ) {
15
+ cacheWrite : function ( req , cacheData ) {
16
16
assert . equal ( cacheData . data . url , 'http://httpbin.org/get' ) ;
17
17
assert . equal ( cacheData . headers [ 'Content-Type' ] , 'application/json' ) ;
18
18
assert . equal ( cacheData . status , '200' ) ;
19
19
}
20
- } ) ) ;
21
- request ( app )
20
+ } ) ) ;
21
+ request ( app )
22
22
. get ( '/get' )
23
23
. end ( function ( err , res ) {
24
24
if ( err ) { return done ( err ) ; }
25
25
assert ( / n o d e - s u p e r a g e n t / . test ( res . body . headers [ 'User-Agent' ] ) ) ;
26
26
assert . equal ( res . body . url , 'http://httpbin.org/get' ) ;
27
27
done ( err ) ;
28
28
} ) ;
29
- } ) ;
29
+ } ) ;
30
30
} ) ;
You can’t perform that action at this time.
0 commit comments