mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-06 13:25:32 +01:00
Add reason strings to noop actions
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user