@@ -160,7 +160,6 @@ class TestEventRegistration implements EventRegistration {
160
160
161
161
matches ( otherEventRegistration : EventRegistration ) {
162
162
if ( otherEventRegistration instanceof TestEventRegistration ) {
163
- // TODO(mtewas unknown as TestEventRegistration rit
164
163
return (
165
164
( this as unknown as TestEventRegistration ) === otherEventRegistration
166
165
) ;
@@ -172,22 +171,6 @@ class TestEventRegistration implements EventRegistration {
172
171
}
173
172
}
174
173
175
- function patchFakeAuthFunctions ( app : FirebaseApp ) {
176
- const token_ = null ;
177
-
178
- app [ 'INTERNAL' ] = app [ 'INTERNAL' ] || { } ;
179
-
180
- app [ 'INTERNAL' ] [ 'getToken' ] = function ( forceRefresh ) {
181
- return Promise . resolve ( token_ ) ;
182
- } ;
183
-
184
- app [ 'INTERNAL' ] [ 'addAuthTokenListener' ] = function ( listener ) { } ;
185
-
186
- app [ 'INTERNAL' ] [ 'removeAuthTokenListener' ] = function ( listener ) { } ;
187
-
188
- return app ;
189
- }
190
-
191
174
class SyncPointListenProvider implements ListenProvider {
192
175
private listens_ : { [ key : string ] : boolean } ;
193
176
constructor ( ) {
@@ -237,7 +220,6 @@ export class SyncPointTestParser {
237
220
{ databaseURL : 'http://tests.fblocal.com:9000' } ,
238
221
'SYNCPOINT'
239
222
) ;
240
- patchFakeAuthFunctions ( this . app ) ;
241
223
}
242
224
243
225
// Check the number of required arguments
@@ -325,7 +307,6 @@ export class SyncPointTestParser {
325
307
const eventFn =
326
308
actualEventData . eventRegistration . getEventRunner ( actualEventData ) ;
327
309
eventFn ( ) ;
328
- console . log ( currentSpec ) ;
329
310
const specStep = currentSpec ;
330
311
const actualPath = this . getTestPath ( optBasePath , specStep . path ) ;
331
312
if ( ! pathEquals ( currentPath , actualPath ) ) {
@@ -454,6 +435,7 @@ export class SyncPointTestParser {
454
435
const registrations = { } ;
455
436
456
437
for ( let i = 0 ; i < testSpec . steps . length ; ++ i ) {
438
+ // TODO: Create a separate object structure specifically for the steps.
457
439
const spec = unsafeClone ( testSpec . steps [ i ] ) ;
458
440
if ( '.comment' in spec ) {
459
441
console . log ( ' > ' + spec [ '.comment' ] ) ;
0 commit comments