From 050a46387dd6111242205369fdbd0bd34aa16838 Mon Sep 17 00:00:00 2001 From: Mohit Tejani <60129002+mohitpubnub@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:25:35 +0530 Subject: [PATCH] fix: event-engine test steps type issues --- test/contract/definitions/event-engine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/contract/definitions/event-engine.ts b/test/contract/definitions/event-engine.ts index 34eed878f..5e3c8f8ae 100644 --- a/test/contract/definitions/event-engine.ts +++ b/test/contract/definitions/event-engine.ts @@ -114,7 +114,7 @@ class EventEngineSteps { @then('I observe the following Events and Invocations of the Presence EE:') async thenIObservePresenceEE(dataTable: DataTable) { const expectedChangelog = dataTable.hashes(); - const actualChangelog = []; + const actualChangelog: { type: string; name: string }[] = []; for (const entry of this.changelog) { if (entry.type === 'eventReceived') { actualChangelog.push({ type: 'event', name: entry.event.type }); @@ -225,7 +225,7 @@ class EventEngineSteps { thenIObserve(dataTable: DataTable) { const expectedChangelog = dataTable.hashes(); - const actualChangelog = []; + const actualChangelog: { type: string; name: string }[] = []; for (const entry of this.changelog) { if (entry.type === 'eventReceived') { actualChangelog.push({ type: 'event', name: entry.event.type }); @@ -242,7 +242,7 @@ class EventEngineSteps { @then("I don't observe any Events and Invocations of the Presence EE") noeventInvocations() { - const actualChangelog = []; + const actualChangelog: { type: string; name: string }[] = []; for (const entry of this.changelog) { if (entry.type === 'eventReceived') { actualChangelog.push({ type: 'event', name: entry.event.type });