From 439e3247b4fc3a91e0f62d1ce5fa546ea8d5abc5 Mon Sep 17 00:00:00 2001 From: Demetrio Girardi Date: Thu, 17 Mar 2022 16:03:18 -0700 Subject: [PATCH] Fix imports of `events` in browsiRtdProvider to work with https://github.com/prebid/Prebid.js/pull/7935 --- modules/browsiRtdProvider.js | 2 +- test/spec/modules/browsiRtdProvider_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/browsiRtdProvider.js b/modules/browsiRtdProvider.js index ce01843d822..15f2d58010d 100644 --- a/modules/browsiRtdProvider.js +++ b/modules/browsiRtdProvider.js @@ -22,7 +22,7 @@ import {loadExternalScript} from '../src/adloader.js'; import {getStorageManager} from '../src/storageManager.js'; import {find, includes} from '../src/polyfill.js'; import {getGlobal} from '../src/prebidGlobal.js'; -import events from '../src/events.js'; +import * as events from '../src/events.js'; import CONSTANTS from '../src/constants.json'; const storage = getStorageManager(); diff --git a/test/spec/modules/browsiRtdProvider_spec.js b/test/spec/modules/browsiRtdProvider_spec.js index f532e2cfdd4..c36b48c5105 100644 --- a/test/spec/modules/browsiRtdProvider_spec.js +++ b/test/spec/modules/browsiRtdProvider_spec.js @@ -1,7 +1,7 @@ import * as browsiRTD from '../../../modules/browsiRtdProvider.js'; import {makeSlot} from '../integration/faker/googletag.js'; import * as utils from '../../../src/utils' -import {default as events} from '../../../src/events'; +import * as events from '../../../src/events'; import * as sinon from 'sinon'; describe('browsi Real time data sub module', function () {