We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bacfbf6 commit 59856dbCopy full SHA for 59856db
src/integrationTests/options.test.ts
@@ -619,5 +619,16 @@ describe('Store config UID2', () => {
619
identity: null,
620
});
621
622
+ test('runs NoIdentityAvailable event', () => {
623
+ uid2.init({});
624
+ let expiredIdentity = makeIdentity({
625
+ identity_expires: Date.now() - 5000,
626
+ refresh_expires: Date.now() - 5000,
627
+ });
628
+ uid2.setIdentity(expiredIdentity);
629
+ expect(handler).toHaveBeenLastCalledWith(EventType.NoIdentityAvailable, {
630
+ identity: null,
631
632
633
634
0 commit comments