Qualify CJS-only module imports

This commit is contained in:
Fedor Indutny
2025-09-19 13:05:51 -07:00
committed by GitHub
parent 140241b83f
commit 40eaf078cc
401 changed files with 1278 additions and 593 deletions

View File

@@ -3,7 +3,7 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { noop } from 'lodash';
import lodash from 'lodash';
import { v4 as generateUuid } from 'uuid';
import type { ReduxActions } from '../../../state/types.js';
@@ -20,6 +20,8 @@ import { IMAGE_JPEG } from '../../../types/MIME.js';
import type { AttachmentDraftType } from '../../../types/Attachment.js';
import { fakeDraftAttachment } from '../../../test-helpers/fakeAttachment.js';
const { noop } = lodash;
describe('both/state/ducks/composer', () => {
const QUOTED_MESSAGE = {
conversationId: '123',

View File

@@ -46,10 +46,9 @@ import {
import { noopAction } from '../../../state/ducks/noop.js';
import type { StateType } from '../../../state/reducer.js';
import { reducer as rootReducer } from '../../../state/reducer.js';
import { setupI18n } from '../../../util/setupI18n.js';
import i18n from '../../util/i18n.js';
import type { ServiceIdString } from '../../../types/ServiceId.js';
import { generateAci, getAciFromPrefix } from '../../../types/ServiceId.js';
import enMessages from '../../../../_locales/en/messages.json';
import {
getDefaultConversation,
getDefaultGroup,
@@ -105,8 +104,6 @@ describe('both/state/selectors/conversations-extra', () => {
);
}
const i18n = setupI18n('en', enMessages);
describe('#getConversationByIdSelector', () => {
const state = {
...getEmptyRootState(),