Skip to content

Commit

Permalink
Compare without meta
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Dec 18, 2024
1 parent 62e6895 commit a90dddc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]', () => {
Expand All @@ -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', () => {
Expand Down

0 comments on commit a90dddc

Please sign in to comment.