Add reason strings to noop actions

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-04-08 13:15:05 -05:00
committed by GitHub
parent 87c215554d
commit 74f5be9239
24 changed files with 85 additions and 258 deletions
@@ -44,7 +44,7 @@ function voiceNoteDataForMessage(
describe('both/state/ducks/audioPlayer', () => {
const getEmptyRootState = (): StateType => {
return rootReducer(undefined, noopAction());
return rootReducer(undefined, noopAction('getEmptyRootState'));
};
const getInitializedState = (): StateType => {
@@ -38,7 +38,7 @@ describe('both/state/ducks/composer', () => {
};
function getRootStateFunction(conversationId?: string) {
const state = rootReducer(undefined, noopAction());
const state = rootReducer(undefined, noopAction('getRootStateFunction'));
return () => ({
...state,
nav: {
@@ -16,7 +16,7 @@ import { generateAci } from '../../../types/ServiceId.std.ts';
describe('donations duck', () => {
const getEmptyRootState = (): StateType =>
rootReducer(undefined, noopAction());
rootReducer(undefined, noopAction('getEmptyRootState'));
const storageMap = new Map<string, unknown>();
const storage = {
@@ -18,7 +18,7 @@ import { itemStorage } from '../../../textsecure/Storage.preload.ts';
describe('preferred reactions duck', () => {
const getEmptyRootState = (): StateType =>
rootReducer(undefined, noopAction());
rootReducer(undefined, noopAction('getEmptyRootState'));
const getRootState = (
preferredReactions: PreferredReactionsStateType
@@ -67,7 +67,7 @@ describe('both/state/selectors/conversations-extra', () => {
const SERVICE_ID_2 = generateAci();
const getEmptyRootState = (): StateType => {
return rootReducer(undefined, noopAction());
return rootReducer(undefined, noopAction('getEmptyRootState'));
};
function makeConversation(id: string): ConversationType {
@@ -11,7 +11,7 @@ import { getIsCustomizingPreferredReactions } from '../../../state/selectors/pre
describe('both/state/selectors/preferredReactions', () => {
const getEmptyRootState = (): StateType =>
rootReducer(undefined, noopAction());
rootReducer(undefined, noopAction('getEmptyRootState'));
const getRootState = (preferredReactions: PreferredReactionsStateType) => ({
...getEmptyRootState(),
@@ -48,7 +48,7 @@ describe('both/state/selectors/search', () => {
});
const getEmptyRootState = (): StateType => {
return rootReducer(undefined, noopAction());
return rootReducer(undefined, noopAction('getEmptyRootState'));
};
function getDefaultMessage(id: string): MessageType {