-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove deprecated functions #126
Remove deprecated functions #126
Conversation
@@ -22,7 +22,7 @@ export class EUID extends SdkBase { | |||
); | |||
return EUID.cookieName; | |||
} | |||
static get EuidDetails(): ProductDetails { | |||
private static get EuidDetails(): ProductDetails { | |||
return productDetails; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be private to match the corresponding function in uid2Sdk.ts
@@ -528,14 +530,14 @@ describe('Store config UID2', () => { | |||
const cookie = getConfigCookie(); | |||
expect(cookie).toBeInstanceOf(Object); | |||
expect(cookie).toHaveProperty('cookieDomain'); | |||
const storageConfig = loadConfig(productDetails); | |||
const storageConfig = getConfigStorage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been getConfigStorage()
all along. loadConfig
can return the config from local storage or the cookie, but we are testing that it is not in local storage
localStorageKey: 'EUID-sdk-identity', | ||
cookieName: '__euid', | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could possibly import these product details from euidSdk.ts
and same for the uid2 product details from uid2Sdk.ts
instead of redefining them in multiple places - but the point is that productDetails
is private and if we exported them to import in these test files, would that make them public now?
No description provided.