Skip to content

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

@junaed-optimizely junaed-optimizely merged commit c50e7b8 into master Jan 6, 2025
12 checks passed
@junaed-optimizely junaed-optimizely deleted the junaed/fssdk-10980-optimizely-onready-always-returns-false branch January 6, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants