Skip to content

Commit c52f331

Browse files
committed
Update spy to use proper sinon chai syntax
1 parent b5925b0 commit c52f331

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/auth/src/platform_cordova/popup_redirect/events.test.ts

+4-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)