File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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', () => {
7373 const spy = sinon . spy ( Storage . prototype , 'setItem' ) ;
7474 const event = _generateNewEvent ( auth , AuthEventType . REAUTH_VIA_REDIRECT ) ;
7575 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 ) ) ;
7878 } ) ;
7979 } ) ;
8080
@@ -91,9 +91,9 @@ describe('platform_cordova/popup_redirect/events', () => {
9191 sinon . stub ( Storage . prototype , 'getItem' ) . returns ( event ) ;
9292 const spy = sinon . spy ( Storage . prototype , 'removeItem' ) ;
9393 expect ( await _getAndRemoveEvent ( auth ) ) . to . eql ( JSON . parse ( event ) ) ;
94- expect ( spy . calledWith (
94+ expect ( spy ) . to . have . been . calledWith (
9595 'firebase:authEvent:test-api-key:test-app'
96- ) ) . to . be . true ;
96+ ) ;
9797 } ) ;
9898 } ) ;
9999
You can’t perform that action at this time.
0 commit comments