This repository was archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Replace @ndhoule/defaults with ES6 spread syntax merging #185
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd461e3
to
aab4d19
Compare
f679c89
to
c1247d7
Compare
Codecov Report
@@ Coverage Diff @@
## master #185 +/- ##
=========================================
Coverage ? 96.36%
=========================================
Files ? 3
Lines ? 55
Branches ? 0
=========================================
Hits ? 53
Misses ? 2
Partials ? 0
Continue to review full report at Codecov.
|
c1247d7
to
9c0f101
Compare
7d8faaf
to
de834bf
Compare
nettofarah
approved these changes
Sep 17, 2020
juliofarah
added a commit
that referenced
this pull request
Mar 19, 2021
This reverts commit 7b59f34.
hbrls
pushed a commit
to nice-fungal/analytics.js-core
that referenced
this pull request
Apr 16, 2021
hbrls
pushed a commit
to nice-fungal/analytics.js-core
that referenced
this pull request
Apr 16, 2021
hbrls
pushed a commit
to nice-fungal/analytics.js-core
that referenced
this pull request
Apr 16, 2021
hbrls
pushed a commit
to nice-fungal/analytics.js-core
that referenced
this pull request
Apr 16, 2021
hbrls
pushed a commit
to nice-fungal/analytics.js-core
that referenced
this pull request
May 31, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR rips out the third party library
@ndhoule/defaults
and replaces it with merges via the ES6's object spread syntax.Test plan
Testing completed successfully using verifying existing unit tests pass and adding additional test coverage. Also verified with e2e tests using the scenarios below:
Each scenario shows me overriding
context.page.search
withlol
properties merged with

pageDefaults
on aTrack
call and supports overridesproperties merged with

pageDefaults
on aPage
call and supports overridesNote: There is an existing bug where the
properties
doesn't reflect changes tocontext.page
. This does not happen in other methodscontext.page
with defaults exists on aIdentify
call and supports overridescontext.page
with defaults exists on anAlias
call and supports overridescookie
defaults are setstore
enabled by default and values are stored (tested withIdentify
)Checklist