Skip to content

Commit

Permalink
finish actions cases
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Nov 21, 2024
1 parent 977dbe0 commit 444d91f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/resolvers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
]);
}
});
});
});
});

0 comments on commit 444d91f

Please sign in to comment.