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

fixes #115 #116

Merged
merged 7 commits into from
Dec 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
sonologico committed Dec 2, 2022
commit 9e468998a9ef81ca31604c38a5293ebf13890007
5 changes: 2 additions & 3 deletions src/push-notifications.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ describe('interest methods', () => {
const beamsClient = new PusherPushNotifications.Client({
instanceId,
});
return beamsClient.getDeviceInterests(150, 2).then(interests => {
return beamsClient.getDeviceInterests(150, 2).then(interests => {
expect(mockDoRequest.mock.calls.length).toBe(1);
expect(mockDoRequest.mock.calls[0].length).toBe(1);
expect(mockDoRequest.mock.calls[0][0]).toEqual({
Expand All @@ -366,8 +366,7 @@ describe('interest methods', () => {
interests: ['donuts'],
});
});
}
);
});

test('should fail if SDK is not started', () => {
// Emulate a fresh SDK, where start has not been called
Expand Down