Skip to content

Commit

Permalink
fix: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-niculescu-sch committed Apr 15, 2024
1 parent ee69c94 commit ff16970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions __tests__/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,7 @@ describe('Identity', () => {
const MOCK_TAB_ID = 1234;
const spy = jest.spyOn(Identity.prototype, '_getTabId');
spy.mockImplementation(() => MOCK_TAB_ID);

identity = new Identity(defaultOptions);
identity._sessionService.fetch = getSessionMock;
identity._clearVarnishCookie();
identity._tabId = MOCK_TAB_ID;

await identity.hasSession();

Expand Down
2 changes: 1 addition & 1 deletion src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class Identity extends EventEmitter {
* Checks if getting session is blocked
* @private
*
* @returns {number}
* @returns {number/null}
*/
_isSessionCallBlocked(){
return this.localStorageCache.get(SESSION_CALL_BLOCKED_CACHE_KEY);
Expand Down

0 comments on commit ff16970

Please sign in to comment.