@@ -48,28 +48,30 @@ describe('Firebase Performance > initializePerformance()', () => {
48
48
expect ( initializePerformance ( app ) ) . to . equal ( performanceInstance ) ;
49
49
} ) ;
50
50
it ( 'returns same instance if given same params a second time' , ( ) => {
51
- const performanceInstance = initializePerformance ( app , { dataCollectionEnabled : false } ) ;
52
- expect ( initializePerformance ( app , { dataCollectionEnabled : false } ) ) . to . equal ( performanceInstance ) ;
51
+ const performanceInstance = initializePerformance ( app , {
52
+ dataCollectionEnabled : false
53
+ } ) ;
54
+ expect (
55
+ initializePerformance ( app , { dataCollectionEnabled : false } )
56
+ ) . to . equal ( performanceInstance ) ;
53
57
} ) ;
54
58
it ( 'throws if called with params after being called with no params' , ( ) => {
55
59
initializePerformance ( app ) ;
56
60
const expectedError = ERROR_FACTORY . create ( ErrorCode . ALREADY_INITIALIZED ) ;
57
- expect ( ( ) => initializePerformance ( app , { dataCollectionEnabled : false } ) ) . to . throw (
58
- expectedError . message
59
- ) ;
61
+ expect ( ( ) =>
62
+ initializePerformance ( app , { dataCollectionEnabled : false } )
63
+ ) . to . throw ( expectedError . message ) ;
60
64
} ) ;
61
65
it ( 'throws if called with no params after being called with params' , ( ) => {
62
66
initializePerformance ( app , { instrumentationEnabled : false } ) ;
63
67
const expectedError = ERROR_FACTORY . create ( ErrorCode . ALREADY_INITIALIZED ) ;
64
- expect ( ( ) => initializePerformance ( app ) ) . to . throw (
65
- expectedError . message
66
- ) ;
68
+ expect ( ( ) => initializePerformance ( app ) ) . to . throw ( expectedError . message ) ;
67
69
} ) ;
68
70
it ( 'throws if called a second time with different params' , ( ) => {
69
71
initializePerformance ( app , { instrumentationEnabled : true } ) ;
70
72
const expectedError = ERROR_FACTORY . create ( ErrorCode . ALREADY_INITIALIZED ) ;
71
- expect ( ( ) => initializePerformance ( app , { instrumentationEnabled : false } ) ) . to . throw (
72
- expectedError . message
73
- ) ;
73
+ expect ( ( ) =>
74
+ initializePerformance ( app , { instrumentationEnabled : false } )
75
+ ) . to . throw ( expectedError . message ) ;
74
76
} ) ;
75
77
} ) ;
0 commit comments