Skip to content

Conversation

@ashleysmithTTD
Copy link
Contributor

No description provided.

static get EuidDetails(): ProductDetails {
private static get EuidDetails(): ProductDetails {
return productDetails;
}
Copy link
Contributor Author

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

expect(cookie).toBeInstanceOf(Object);
expect(cookie).toHaveProperty('cookieDomain');
const storageConfig = loadConfig(productDetails);
const storageConfig = getConfigStorage();
Copy link
Contributor Author

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',
};

Copy link
Contributor Author

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?

@ashleysmithTTD ashleysmithTTD changed the title Address deprecated cookie_name Remove deprecated functions Dec 17, 2024
@ashleysmithTTD ashleysmithTTD merged commit 90055b7 into main Dec 17, 2024
3 checks passed
@ashleysmithTTD ashleysmithTTD deleted the ans-UID2-4079-address-deprecated-methods-and-properties branch December 17, 2024 19:44
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.

3 participants