mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 11:28:08 +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, omit } from 'lodash';
|
||||
import lodash from 'lodash';
|
||||
import {
|
||||
HTTPError,
|
||||
SendMessageProtoError,
|
||||
@@ -15,6 +15,8 @@ import {
|
||||
maybeExpandErrors,
|
||||
} from '../../../jobs/helpers/handleMultipleSendErrors.js';
|
||||
|
||||
const { noop, omit } = lodash;
|
||||
|
||||
describe('maybeExpandErrors', () => {
|
||||
// This returns a readonly array, but Chai wants a mutable one.
|
||||
const expand = (input: unknown) => maybeExpandErrors(input) as Array<unknown>;
|
||||
|
||||
Reference in New Issue
Block a user