-
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
appnexus adapter support empty keyvalues in bidder params #3257
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,6 +261,8 @@ describe('AppNexusAdapter', function () { | |
singleArrNum: [5], | ||
multiValMixed: ['value1', 2, 'value3'], | ||
singleValNum: 123, | ||
emptyStr: '', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure if this is valid use case but what will happen if someone adds There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the space character is treated as the value for the key-pair and is preserved in the ut request. eg There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As a follow-up to the above, the treatment of the space character has not been changed through this PR. Using a space character as a keyvalue in |
||
emptyArr: [''], | ||
badValue: {'foo': 'bar'} // should be dropped | ||
} | ||
} | ||
|
@@ -285,6 +287,10 @@ describe('AppNexusAdapter', function () { | |
}, { | ||
'key': 'singleValNum', | ||
'value': ['123'] | ||
}, { | ||
'key': 'emptyStr' | ||
}, { | ||
'key': 'emptyArr' | ||
}]); | ||
}); | ||
|
||
|
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.
The if statement here and on line 360 are same. Please move in some function.