Skip to content

fix bidcaching for 1x1#49

Merged
pedrolopezmrf merged 6 commits intomarfeel-masterfrom
put1x1SizesBidCachingIf300x250
Mar 4, 2020
Merged

fix bidcaching for 1x1#49
pedrolopezmrf merged 6 commits intomarfeel-masterfrom
put1x1SizesBidCachingIf300x250

Conversation

@pedrolopezmrf
Copy link

No description provided.

gdprDataHandler.setConsentData(consentData);

if (!!consentData.vendorData) {
if (consentData.vendorData) {

Choose a reason for hiding this comment

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

??

*/

import { filterBidsBySizes } from './marfeelTools';
import { isBidSizeAllowed, add1x1IfAllowed } from './marfeelTools';

Choose a reason for hiding this comment

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

You're importing the private helper instead of getAllowedSizes. Did this test pass?

Suggested change
import { isBidSizeAllowed, add1x1IfAllowed } from './marfeelTools';
import { isBidSizeAllowed, getAllowedSizes } from './marfeelTools';

}])
});

it('adds 1x1 to allowed sizes if 300x250 is present', function() {

Choose a reason for hiding this comment

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

This is defined inside the isBidSizeAllowed() block.
Shouldn't we create a new block for getAllowedSizes?

Suggested change
it('adds 1x1 to allowed sizes if 300x250 is present', function() {
describe('getAllowedSizes', function() {
it('adds 1x1 to allowed sizes if 300x250 is present', function() {

Also, can we add a test to ensure the 1x1 is not added when there is no 300x250?

@pedrolopezmrf pedrolopezmrf merged commit 6fe7d23 into marfeel-master Mar 4, 2020
@pedrolopezmrf pedrolopezmrf deleted the put1x1SizesBidCachingIf300x250 branch March 4, 2020 17:06
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.

2 participants

Comments