-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathperformance.spec.ts
More file actions
35 lines (28 loc) · 949 Bytes
/
performance.spec.ts
File metadata and controls
35 lines (28 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { TestBed } from '@angular/core/testing';
import { AngularFireModule, FirebaseApp } from '@angular/fire';
import { AngularFirePerformance, AngularFirePerformanceModule } from './public_api';
import { COMMON_CONFIG } from '../test-config';
import { rando } from '../firestore/utils.spec';
describe('AngularFirePerformance', () => {
let app: FirebaseApp;
let afp: AngularFirePerformance;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
AngularFireModule.initializeApp(COMMON_CONFIG, rando()),
AngularFirePerformanceModule
]
});
app = TestBed.inject(FirebaseApp);
afp = TestBed.inject(AngularFirePerformance);
});
afterEach(() => {
app.delete();
});
it('should exist', () => {
expect(afp instanceof AngularFirePerformance).toBe(true);
});
it('should have the Performance instance', () => {
expect(afp.dataCollectionEnabled).toBeDefined();
});
});