File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ describe('platform_cordova/popup_redirect/events', () => {
73
73
const spy = sinon . spy ( Storage . prototype , 'setItem' ) ;
74
74
const event = _generateNewEvent ( auth , AuthEventType . REAUTH_VIA_REDIRECT ) ;
75
75
await _savePartialEvent ( auth , event ) ;
76
- expect ( spy . calledWith ( 'firebase:authEvent:test-api-key:test-app' ,
77
- JSON . stringify ( event ) ) ) . to . be . true ;
76
+ expect ( spy ) . to . have . been . calledWith ( 'firebase:authEvent:test-api-key:test-app' ,
77
+ JSON . stringify ( event ) ) ;
78
78
} ) ;
79
79
} ) ;
80
80
@@ -91,9 +91,9 @@ describe('platform_cordova/popup_redirect/events', () => {
91
91
sinon . stub ( Storage . prototype , 'getItem' ) . returns ( event ) ;
92
92
const spy = sinon . spy ( Storage . prototype , 'removeItem' ) ;
93
93
expect ( await _getAndRemoveEvent ( auth ) ) . to . eql ( JSON . parse ( event ) ) ;
94
- expect ( spy . calledWith (
94
+ expect ( spy ) . to . have . been . calledWith (
95
95
'firebase:authEvent:test-api-key:test-app'
96
- ) ) . to . be . true ;
96
+ ) ;
97
97
} ) ;
98
98
} ) ;
99
99
You can’t perform that action at this time.
0 commit comments