Skip to content

Commit

Permalink
test: remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithpal-Sooriya committed Jan 30, 2025
1 parent b1f8f9d commit c96fc29
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,6 @@ describe('NotificationServicesPushController Services', () => {
expect(result).toBe(MOCK_NEW_REG_TOKEN);
});

it('should successfully call APIs and add provided mobile fcmToken', async () => {
const { mobileParams, apis } = arrangeMocks();
mockErrorLog();
const result = await activatePushNotifications(mobileParams);

expect(apis.mockGet.isDone()).toBe(true);
expect(mobileParams.createRegToken).not.toHaveBeenCalled();
expect(apis.mockPut.isDone()).toBe(true);

expect(result).toBe(MOCK_MOBILE_FCM_TOKEN);
});

it('should return null if unable to get links from API', async () => {
const { params, apis } = arrangeMocks({ mockGet: { status: 500 } });
mockErrorLog();
Expand Down

0 comments on commit c96fc29

Please sign in to comment.