From 79f2a9d2d2b361b3f62f34b40b55efa4d1919718 Mon Sep 17 00:00:00 2001 From: Jaimin Panchal Date: Tue, 19 Jun 2018 08:34:49 -0400 Subject: [PATCH] Unit test fix (#2739) --- modules/gumgumBidAdapter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gumgumBidAdapter.js b/modules/gumgumBidAdapter.js index 9f8d131f4626..d8881f56f0d7 100644 --- a/modules/gumgumBidAdapter.js +++ b/modules/gumgumBidAdapter.js @@ -2,6 +2,7 @@ import * as utils from 'src/utils' import { config } from 'src/config' import { registerBidder } from 'src/adapters/bidderFactory' +import includes from 'core-js/library/fn/array/includes'; const BIDDER_CODE = 'gumgum' const ALIAS_BIDDER_CODE = ['gg'] @@ -181,7 +182,7 @@ function interpretResponse (serverResponse, bidRequest) { let [width, height] = sizes[0].split('x') // return 1x1 when breakout expected - if ((product === 2 || product === 5) && sizes.includes('1x1')) { + if ((product === 2 || product === 5) && includes(sizes, '1x1')) { width = '1' height = '1' }