diff --git a/src/integrationTests/options.test.ts b/src/integrationTests/options.test.ts index 7217f1f..9e671ef 100644 --- a/src/integrationTests/options.test.ts +++ b/src/integrationTests/options.test.ts @@ -721,6 +721,15 @@ describe('does not call NoIdentityAvailable event', () => { await uid2.setIdentityFromEmail('test@test.com', mocks.makeUid2CstgOption()); }).not.toThrow(); + expect(handler).not.toHaveBeenLastCalledWith(EventType.NoIdentityAvailable, { + identity: null, + }); + }); + test('when identity is set with local storage', () => { + let validIdentity = makeIdentity(); + mocks.setUid2LocalStorage(validIdentity); + uid2.init({}); + expect(handler).not.toHaveBeenLastCalledWith(EventType.NoIdentityAvailable, { identity: null, });