@@ -2133,11 +2133,14 @@ describe('ngMockE2E', function() {
21332133
21342134 describe ( 'passThrough()' , function ( ) {
21352135 it ( 'should delegate requests to the real backend when passThrough is invoked' , function ( ) {
2136+ var eventHandlers = { progress : angular . noop } ;
2137+ var uploadEventHandlers = { progress : angular . noop } ;
2138+
21362139 hb . when ( 'GET' , / \/ p a s s T h r o u g h \/ .* / ) . passThrough ( ) ;
2137- hb ( 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' ) ;
2140+ hb ( 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' , eventHandlers , uploadEventHandlers ) ;
21382141
21392142 expect ( realHttpBackend ) . toHaveBeenCalledOnceWith (
2140- 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' ) ;
2143+ 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' , eventHandlers , uploadEventHandlers ) ;
21412144 } ) ;
21422145
21432146 it ( 'should be able to override a respond definition with passThrough' , function ( ) {
@@ -2146,7 +2149,7 @@ describe('ngMockE2E', function() {
21462149 hb ( 'GET' , '/passThrough/23' , null , callback , { } , null , true ) ;
21472150
21482151 expect ( realHttpBackend ) . toHaveBeenCalledOnceWith (
2149- 'GET' , '/passThrough/23' , null , callback , { } , null , true , undefined ) ;
2152+ 'GET' , '/passThrough/23' , null , callback , { } , null , true , undefined , undefined , undefined ) ;
21502153 } ) ;
21512154
21522155 it ( 'should be able to override a respond definition with passThrough' , inject ( function ( $browser ) {
0 commit comments