File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -115,15 +115,18 @@ describe('GitHub Remote', function () {
115115 describe ( '.file()' , function ( ) {
116116 it ( 'should return an array' , co ( function * ( ) {
117117 var files = remote . file ( 'component/emitter' , '1.1.1' , 'component.json' ) ;
118- files . length . should . be . ok ;
118+ var result = yield * remote . request ( files [ 0 ] , true ) ;
119+ result . res . statusCode . should . equal ( 200 ) ;
119120 } ) )
120121 } )
121122
122123 describe ( '.archive()' , function ( ) {
123124 it ( 'should return an object' , co ( function * ( ) {
124125 var archive = remote . archive ( 'component/emitter' ) ;
125- archive . zip . length . should . be . ok ;
126- archive . tar . length . should . be . ok ;
126+ var zipResult = yield * remote . request ( archive . zip [ 0 ] ) ;
127+ var tarResult = yield * remote . request ( archive . tar [ 0 ] ) ;
128+ zipResult . res . statusCode . should . equal ( 200 ) ;
129+ tarResult . res . statusCode . should . equal ( 200 ) ;
127130 } ) )
128131 } )
129132} )
You can’t perform that action at this time.
0 commit comments