Skip to content

Commit

Permalink
Fix 'ably' mock does not export ErrorInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
VeskeR committed Jul 17, 2024
1 parent 20e580e commit 6db9f27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __mocks__/ably/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ class MockRealtime {
}
}

class MockErrorInfo extends ErrorInfo {}

// maintain the PresenceMessage class so tests can initialise it directly using
// PresenceMessage.fromValues.
MockRealtime.PresenceMessage = Rest.PresenceMessage;

export { MockRealtime as Realtime };
export { MockRealtime as Realtime, MockErrorInfo as ErrorInfo };

0 comments on commit 6db9f27

Please sign in to comment.