From 3ab029a11f6b510011b49d401d1a8af1420e86fb Mon Sep 17 00:00:00 2001 From: Robert Ing Date: Fri, 25 Oct 2024 11:10:52 -0400 Subject: [PATCH] update tests --- test/src/config/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/config/utils.js b/test/src/config/utils.js index 2995a307..06b6476a 100644 --- a/test/src/config/utils.js +++ b/test/src/config/utils.js @@ -172,13 +172,14 @@ var pluses = /\+/g, return mParticle.getInstance()._Persistence.getLocalStorage(); } }, + // https://go.mparticle.com/work/SQDSDKS-6894 findEventFromBatch = function(batch, eventName) { if (batch.events.length) { return batch.events.find(function(event) { switch (event.event_type) { case 'screen_view': // The SDK sets "PageView" as the default for a screen_name if one is not provided - return ['PageView', eventName].indexOf(event.data.screen_name) > -1; + return ['PageView', eventName].includes(event.data.screen_name); case 'commerce_event': if (event.data.product_action) { return event.data.product_action.action === eventName;