-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chore(analytics): enable linting on __tests__ #13430
Conversation
9b0cd1e
to
caacf4e
Compare
@@ -46,7 +46,7 @@ describe('Analytics Personalize API: flushEvents', () => { | |||
await new Promise(process.nextTick); | |||
expect(mockResolveConfig).toHaveBeenCalledTimes(1); | |||
expect(mockResolveCredentials).toHaveBeenCalledTimes(1); | |||
const { trackingId, ...configWithoutTrackingId } = mockPersonalizeConfig; | |||
const { trackingId: _, ...configWithoutTrackingId } = mockPersonalizeConfig; |
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.
Do we even need to keep trackingId if we are not using it?
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 expression was for removing the trackingId
property while creating a new copy from the mockPersonalizeConfig
, I didn't want to refactor it completely from the original code.
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.
i think this might be missed artifact right? We should either check if trackingId's value or remove it , IMO. but non blocking so i will approve this PR :)
caacf4e
to
fea056c
Compare
Description of changes
See each commit message for details.
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.