mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* 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>
19 lines
641 B
JavaScript
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 = {};
|