From 9a2368427d173d1144e45af405737f149069efea Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Thu, 12 Nov 2020 03:29:14 -0800 Subject: [PATCH] fix: Act on allowSentryBreadcrumbs when appropriate (#3037) The included test, to check for a breadcrumb category starting with "sentry", was improperly written. --- packages/browser/test/integration/common/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser/test/integration/common/init.js b/packages/browser/test/integration/common/init.js index b3505b7dbcb4..564eb1269e1f 100644 --- a/packages/browser/test/integration/common/init.js +++ b/packages/browser/test/integration/common/init.js @@ -43,7 +43,7 @@ function initSDK() { // One of the tests use manually created breadcrumb without eventId and we want to let it through if ( - breadcrumb.category.indexOf("sentry" === 0) && + breadcrumb.category.indexOf("sentry") === 0 && breadcrumb.event_id && !window.allowSentryBreadcrumbs ) {