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 { times } from 'lodash';
import lodash from 'lodash';
import {
RowType,
_testHeaderText,
@@ -13,6 +13,8 @@ import { getDefaultConversation } from '../../../test-helpers/getDefaultConversa
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper.js';
const { times } = lodash;
describe('LeftPaneChooseGroupMembersHelper', () => {
const defaults = {
uuidFetchState: {},

View File

@@ -2,13 +2,15 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import { shuffle } from 'lodash';
import lodash from 'lodash';
import { IMAGE_JPEG } from '../../../types/MIME.js';
import { groupMediaItemsByDate } from '../../../components/conversation/media-gallery/groupMediaItemsByDate.js';
import type { MediaItemType } from '../../../types/MediaItem.js';
import { fakeAttachment } from '../../../test-helpers/fakeAttachment.js';
const { shuffle } = lodash;
const testDate = (
year: number,
month: number,