Skip to content

Commit

Permalink
Avoid overriding AMP request original size with mutli-size (prebid#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlackty authored and sachin-pubmatic committed Aug 2, 2021
1 parent 7602bf3 commit e2e8721
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions endpoints/openrtb2/amp_auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,24 @@ func TestSizeWithMultisize(t *testing.T) {
}.execute(t)
}

func TestSizeWithMultisize(t *testing.T) {
formatOverrideSpec{
width: 20,
height: 40,
multisize: "200x50,100x60",
expect: []openrtb.Format{{
W: 20,
H: 40,
}, {
W: 200,
H: 50,
}, {
W: 100,
H: 60,
}},
}.execute(t)
}

func TestHeightOnly(t *testing.T) {
formatOverrideSpec{
height: 200,
Expand Down

0 comments on commit e2e8721

Please sign in to comment.