From 0e67f5def76ffbdaa45a8ded3546298f52ee01d6 Mon Sep 17 00:00:00 2001 From: Dawntraoz Date: Thu, 2 Jan 2025 12:23:14 +0100 Subject: [PATCH] test(shape-7911): add undefined in case of null in storyfront, so the null tests are not needed --- .../containerToPluginMessage/LoadedMessage.test.ts | 8 -------- .../containerToPluginMessage/StateChangedMessage.test.ts | 8 -------- 2 files changed, 16 deletions(-) diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts index c6b4efca..8596eee8 100644 --- a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/LoadedMessage.test.ts @@ -183,14 +183,6 @@ describe('LoadedMessage', () => { }), ).toEqual(true) }) - it('is not null', () => { - expect( - isLoadedMessage({ - ...stub, - userPermissions: null, - }), - ).toEqual(false) - }) it('is not a string', () => { expect( isLoadedMessage({ diff --git a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts index c783fc2b..26309fea 100644 --- a/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts +++ b/packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/StateChangedMessage.test.ts @@ -183,14 +183,6 @@ describe('StateChangedMessage', () => { }), ).toEqual(true) }) - it('is not null', () => { - expect( - isStateMessage({ - ...stub, - userPermissions: null, - }), - ).toEqual(false) - }) it('is not a string', () => { expect( isStateMessage({