Skip to content

Commit f35dcbc

Browse files
chore(lint): Clean up messaging tests
1 parent e68a7d9 commit f35dcbc

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/messaging/messaging.spec.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { inject, TestBed } from '@angular/core/testing';
1+
import { TestBed } from '@angular/core/testing';
22
import { AngularFireModule, FIREBASE_APP_NAME, FIREBASE_OPTIONS, FirebaseApp } from '@angular/fire';
33
import { AngularFireMessaging, AngularFireMessagingModule } from './public_api';
44
import { COMMON_CONFIG } from '../test-config';
@@ -15,10 +15,9 @@ describe('AngularFireMessaging', () => {
1515
AngularFireMessagingModule
1616
]
1717
});
18-
inject([FirebaseApp, AngularFireMessaging], (app_: FirebaseApp, _afm: AngularFireMessaging) => {
19-
app = app_;
20-
afm = _afm;
21-
})();
18+
19+
app = TestBed.inject(FirebaseApp);
20+
afm = TestBed.inject(AngularFireMessaging);
2221
});
2322

2423
afterEach(() => {
@@ -52,10 +51,9 @@ describe('AngularFireMessaging with different app', () => {
5251
{ provide: FIREBASE_OPTIONS, useValue: COMMON_CONFIG }
5352
]
5453
});
55-
inject([FirebaseApp, AngularFireMessaging], (app_: FirebaseApp, _afm: AngularFireMessaging) => {
56-
app = app_;
57-
afm = _afm;
58-
})();
54+
55+
app = TestBed.inject(FirebaseApp);
56+
afm = TestBed.inject(AngularFireMessaging);
5957
});
6058

6159
afterEach(() => {

0 commit comments

Comments
 (0)