Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write tests to know Stream.io is receiving the activity data? #16

Closed
gianpaj opened this issue Mar 2, 2018 · 1 comment
Closed

Comments

@gianpaj
Copy link

gianpaj commented Mar 2, 2018

I have an app similar to Instagram and I have JS tests which trigger API calls for example to follow a user.

Is there a way to find out if the follow activity went through to Stream.io programmatically?

Thanks

@gianpaj gianpaj changed the title How to write tests to know Stream.io is receiving the data? How to write tests to know Stream.io is receiving the activity data? Mar 2, 2018
@dwightgunning
Copy link

dwightgunning commented Mar 28, 2018

Preferrably for unit tests you'd mock the external service so your test suite runs faster and you won't use your quotas unnecessarily.

The Feed.follow() function returns a Promise so you can provide a rejection handler method.

Closing for now but happy to continue the discussion.

Reminder: general implementation questions are best directed to Stack Overflow with the getstream-io tag in order to benefit the Stream developer community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants