Files
self/app/tests/__setup__/notificationServiceMock.js
Eric Nakagawa 4d4efffe5a Apply BSL to app codebase (#639)
* Clean up root license wording

* Simplify SPDX header

* simplify license and rename BSL to BUSL

* fix merge issues

* fix missing method

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-06-23 21:47:53 -07:00

19 lines
641 B
JavaScript

// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
/* global jest */
// Mock for notificationService.ts
export const getStateMessage = jest.fn().mockImplementation(state => {
return 'Mock state message';
});
export const requestNotificationPermission = jest.fn().mockResolvedValue(true);
export const getFCMToken = jest.fn().mockResolvedValue('mock-fcm-token');
export const registerDeviceToken = jest.fn().mockResolvedValue();
export const setupNotifications = jest.fn().mockReturnValue(jest.fn());
export const RemoteMessage = {};