From de2b9ae5fc2709d84f860268de5332480018ada3 Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Wed, 1 Nov 2023 23:36:06 -0500 Subject: [PATCH] wip --- .../src/lib/__tests__/onetrust-api.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/consent/consent-wrapper-onetrust/src/lib/__tests__/onetrust-api.test.ts b/packages/consent/consent-wrapper-onetrust/src/lib/__tests__/onetrust-api.test.ts index 6e7f0f218..1197349f0 100644 --- a/packages/consent/consent-wrapper-onetrust/src/lib/__tests__/onetrust-api.test.ts +++ b/packages/consent/consent-wrapper-onetrust/src/lib/__tests__/onetrust-api.test.ts @@ -39,7 +39,8 @@ describe(getOneTrustGlobal, () => { expect(getOneTrustGlobal()).toBeUndefined() expect(consoleErrorSpy).not.toHaveBeenCalled() }) - it('should log an error if the global is missing fields', () => { + + it('should log an error if the global is an unexpected type', () => { ;(window as any).OneTrust = {} const consoleErrorSpy = jest .spyOn(console, 'error')