mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Qualify CJS-only module imports
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user