Skip to content

Commit

Permalink
fix: tests mocking sendMulticast instead of the correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Nov 27, 2024
1 parent e2e0884 commit d868621
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe('PushNotificationUtils', () => {
beforeEach(() => {
sendMulticastMock.mockReset();
messaging.mockImplementation(() => ({
sendMulticast: sendMulticastMock.mockReturnValue({
sendEachForMulticast: sendMulticastMock.mockReturnValue({
failureCount: 0,
}),
}));
Expand Down Expand Up @@ -343,7 +343,7 @@ describe('PushNotificationUtils', () => {

isFirebaseInitializedMock.mockReturnValue(true);
messaging.mockImplementation(() => ({
sendMulticast: sendMulticastMock.mockReturnValue({
sendEachForMulticast: sendMulticastMock.mockReturnValue({
responses: [
{
error: {
Expand Down Expand Up @@ -373,7 +373,7 @@ describe('PushNotificationUtils', () => {

isFirebaseInitializedMock.mockReturnValue(true);
messaging.mockImplementation(() => ({
sendMulticast: sendMulticastMock.mockReturnValue({
sendEachForMulticast: sendMulticastMock.mockReturnValue({
responses: [
{
error: {
Expand Down

0 comments on commit d868621

Please sign in to comment.