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

update some unit tests to clean-up consentManagement hooks #2711

Merged
merged 2 commits into from
Jun 20, 2018

Conversation

jsnellbaker
Copy link
Collaborator

@jsnellbaker jsnellbaker commented Jun 11, 2018

Type of change

  • Bugfix
  • Refactoring (no functional changes, no api changes)

Description of change

This fixes issue #2707

Several unit tests were calling the config.setConfig to initialize the consentManagement module, but they weren't cleaning up after the test which left a lingering hook on the pbjs.requestBids function that was being used in latter unrelated tests (specifically in the pbjs_api_spec.js file).

This change adds the necessary clean-up on those tests.

Copy link
Collaborator

@snapwich snapwich left a comment

Choose a reason for hiding this comment

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

LGTM.

I added one more hook cleanup I noticed coming from the pubCommonId module; might want to check to make sure it looks good to you.

@jsnellbaker
Copy link
Collaborator Author

@snapwich Thanks. I checked the addition and it LGTM.

@jsnellbaker jsnellbaker added the needs 2nd review Core module updates require two approvals from the core team label Jun 19, 2018
@mkendall07 mkendall07 merged commit b60a752 into master Jun 20, 2018
@mkendall07 mkendall07 deleted the remove_lingering_gdpr_test_hooks branch June 20, 2018 17:21
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* update some unit tests to clean-up gdpr module hooks

* add cleanup for pubCommonId requestBids hook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants