Skip to content
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

Fix tests for edgeConfigOverrides and Streaming Media #1205

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

ninaceban
Copy link
Contributor

Description

Related Issue

Motivation and Context

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass.
  • I have run the Sandbox successfully.

@@ -130,6 +130,7 @@ describe("StreamingMedia::createMediaEventManager", () => {
});
expect(eventManager.sendEvent).toHaveBeenCalledWith(event, {
mediaOptions,
edgeConfigOverrides: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of changing the test to have edgeConfigOverrides: undefined, we should continue the work of #1199 and modify src/core/createEventManager.js to not include empty edgeConfigOverrides in the call to sendEvent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is using src/core/createEventManager.js down the line, which checks the edgeConfigOverrides and construct the request payload based on that.

@jonsnyder jonsnyder merged commit 19dac86 into main Oct 29, 2024
4 of 6 checks passed
@jonsnyder jonsnyder deleted the fix-tests branch October 29, 2024 15:39
@jonsnyder jonsnyder added the ignore-for-release Do not include this PR in release notes label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release Do not include this PR in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants