diff --git a/tests/resolvers.test.ts b/tests/resolvers.test.ts index 7b0fea0..4fda273 100644 --- a/tests/resolvers.test.ts +++ b/tests/resolvers.test.ts @@ -355,9 +355,20 @@ describe('Query Resolvers', async () => { actionsResponse[actionsResponse.length - 1].actionData!; }); - test('Emitting multiple actions should return multiple actions with the correct data', async () => { + test('GQL response contains multiple actions', async () => { assert.strictEqual(lastBlockActions.length, numberOfEmits); }); + test('The actions have the correct data', async () => { + for (let i = 0; i < numberOfEmits; i++) { + const actionData = lastBlockActions[i]!; + assert.deepStrictEqual(actionData.data, [ + '2', + '1', + '1', + ...zkApp.address.toFields().map((f) => f.toString()), + ]); + } + }); }); }); });