Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junaed/fssdk 10980 optimizely onready always returns false #302

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

junaed-optimizely
Copy link
Contributor

Summary

optimizelyClient.isReady always returns false when ODP is explicitly off and user id is null.

Expected behavior - "User promise should not be fulfilled unless a valid user is set, when ODP is disabled".

Test plan

Test case has been added to cover this edge case

Issues

Copy link

github-actions bot commented Dec 24, 2024

Jest Coverage Report

St.
Category Percentage Covered / Total
🟢 Statements
98.95% (+0% 🔼)
851/860
🟢 Branches
91.51% (+0.07% 🔼)
345/377
🟢 Functions 97.52% 157/161
🟢 Lines
99.1% (+0% 🔼)
769/776

Test suite run success

266 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 200da3a

Copy link
Contributor

@raju-opti raju-opti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants