File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -90,38 +90,9 @@ describe('angularfire', () => {
9090 } ) ;
9191
9292 if ( typeof window !== 'undefined' ) {
93-
9493 it ( 'should have the provided name' , ( ) => {
9594 expect ( app . name ) . toBe ( appName ) ;
9695 } ) ;
97-
98- it ( 'should use an already intialized firebase app if it exists' , done => {
99- @NgModule ( {
100- imports : [
101- AngularFireModule . initializeApp ( COMMON_CONFIG , appName ) ,
102- BrowserModule
103- ]
104- } )
105- class MyModule implements DoBootstrap {
106- // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method,@typescript-eslint/no-empty-function
107- ngDoBootstrap ( ) {
108- }
109- }
110-
111- const compilerFactory : CompilerFactory =
112- defaultPlatform . injector . get ( CompilerFactory , null ) ;
113- const moduleFactory = compilerFactory . createCompiler ( ) . compileModuleSync ( MyModule ) ;
114-
115- defaultPlatform . bootstrapModuleFactory ( moduleFactory )
116- . then ( moduleRef => {
117- const ref = moduleRef . injector . get ( FirebaseApp ) ;
118- expect ( ref . name ) . toEqual ( app . name ) ;
119- } ) . then ( done , e => {
120- fail ( e ) ;
121- done ( ) ;
122- } ) ;
123- } ) ;
124-
12596 }
12697 } ) ;
12798} ) ;
You can’t perform that action at this time.
0 commit comments