@@ -2133,11 +2133,14 @@ describe('ngMockE2E', function() {
2133
2133
2134
2134
describe ( 'passThrough()' , function ( ) {
2135
2135
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
+
2136
2139
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 ) ;
2138
2141
2139
2142
expect ( realHttpBackend ) . toHaveBeenCalledOnceWith (
2140
- 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' ) ;
2143
+ 'GET' , '/passThrough/23' , null , callback , { } , null , true , 'blob' , eventHandlers , uploadEventHandlers ) ;
2141
2144
} ) ;
2142
2145
2143
2146
it ( 'should be able to override a respond definition with passThrough' , function ( ) {
@@ -2146,7 +2149,7 @@ describe('ngMockE2E', function() {
2146
2149
hb ( 'GET' , '/passThrough/23' , null , callback , { } , null , true ) ;
2147
2150
2148
2151
expect ( realHttpBackend ) . toHaveBeenCalledOnceWith (
2149
- 'GET' , '/passThrough/23' , null , callback , { } , null , true , undefined ) ;
2152
+ 'GET' , '/passThrough/23' , null , callback , { } , null , true , undefined , undefined , undefined ) ;
2150
2153
} ) ;
2151
2154
2152
2155
it ( 'should be able to override a respond definition with passThrough' , inject ( function ( $browser ) {
0 commit comments