Skip to content

Commit

Permalink
fix: event-engine test steps type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub authored Apr 18, 2024
1 parent 05d74a3 commit 050a463
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/contract/definitions/event-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 });
Expand All @@ -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 });
Expand Down

0 comments on commit 050a463

Please sign in to comment.