From a90dddc4909e799295372e6ced54f071069be3e5 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Wed, 18 Dec 2024 03:38:06 -0600 Subject: [PATCH] Compare without meta --- .../memory/src/spec/Diviner.payloadPointer.schema.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/modules/packages/diviner/packages/payloadpointer/packages/memory/src/spec/Diviner.payloadPointer.schema.spec.ts b/packages/modules/packages/diviner/packages/payloadpointer/packages/memory/src/spec/Diviner.payloadPointer.schema.spec.ts index d5381cf627..c5aaebe921 100644 --- a/packages/modules/packages/diviner/packages/payloadpointer/packages/memory/src/spec/Diviner.payloadPointer.schema.spec.ts +++ b/packages/modules/packages/diviner/packages/payloadpointer/packages/memory/src/spec/Diviner.payloadPointer.schema.spec.ts @@ -60,7 +60,9 @@ describe('PayloadPointerDiviner', () => { ])('returns Payload of schema type', async (schema, expected) => { const pointer = createPointer([[]], [[schema]]) const result = await sut.divine([pointer]) - expect(result).toEqual([expected]) + expect(result).toBeArrayOfSize(1) + const [actual] = result + expect(PayloadBuilder.omitMeta(actual)).toEqual(expected) }) }) describe('single schema [w/address]', () => { @@ -70,7 +72,9 @@ describe('PayloadPointerDiviner', () => { ])('returns Payload of schema type', async (schema, expected) => { const pointer = createPointer([[(await account).address]], [[schema]]) const result = await sut.divine([pointer]) - expect(PayloadBuilder.omitStorageMeta(result)).toEqual([expected]) + expect(result).toBeArrayOfSize(1) + const [actual] = result + expect(PayloadBuilder.omitMeta(actual)).toEqual(expected) }) }) describe('multiple schema rules', () => {