mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 22:01:49 +01:00
Enforce node: schema for builtins, import extensions
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { RowType } from '../../../components/ConversationList';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper';
|
||||
import { RowType } from '../../../components/ConversationList.js';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.js';
|
||||
|
||||
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper';
|
||||
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper.js';
|
||||
|
||||
describe('LeftPaneArchiveHelper', () => {
|
||||
let sandbox: sinon.SinonSandbox;
|
||||
|
||||
@@ -4,11 +4,14 @@
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { times } from 'lodash';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import {
|
||||
RowType,
|
||||
_testHeaderText,
|
||||
} from '../../../components/ConversationList.js';
|
||||
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
|
||||
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper';
|
||||
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper.js';
|
||||
|
||||
describe('LeftPaneChooseGroupMembersHelper', () => {
|
||||
const defaults = {
|
||||
|
||||
@@ -3,14 +3,17 @@
|
||||
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import {
|
||||
RowType,
|
||||
_testHeaderText,
|
||||
} from '../../../components/ConversationList.js';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
|
||||
import {
|
||||
getDefaultConversation,
|
||||
getDefaultGroupListItem,
|
||||
} from '../../../test-helpers/getDefaultConversation';
|
||||
} from '../../../test-helpers/getDefaultConversation.js';
|
||||
|
||||
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper';
|
||||
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper.js';
|
||||
|
||||
describe('LeftPaneComposeHelper', () => {
|
||||
let sinonSandbox: sinon.SinonSandbox;
|
||||
|
||||
@@ -3,12 +3,15 @@
|
||||
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import {
|
||||
RowType,
|
||||
_testHeaderText,
|
||||
} from '../../../components/ConversationList.js';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
|
||||
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper';
|
||||
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper';
|
||||
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper.js';
|
||||
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper.js';
|
||||
|
||||
describe('LeftPaneInboxHelper', () => {
|
||||
const defaultProps: LeftPaneInboxPropsType = {
|
||||
|
||||
@@ -4,10 +4,13 @@
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import {
|
||||
RowType,
|
||||
_testHeaderText,
|
||||
} from '../../../components/ConversationList.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
|
||||
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper';
|
||||
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.js';
|
||||
|
||||
const baseSearchHelperArgs = {
|
||||
conversationResults: { isLoading: false, results: [] },
|
||||
|
||||
@@ -3,11 +3,14 @@
|
||||
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import { DurationInSeconds } from '../../../util/durations';
|
||||
import {
|
||||
RowType,
|
||||
_testHeaderText,
|
||||
} from '../../../components/ConversationList.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
import { DurationInSeconds } from '../../../util/durations/index.js';
|
||||
|
||||
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper';
|
||||
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper.js';
|
||||
|
||||
function getComposeState() {
|
||||
return {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { assert } from 'chai';
|
||||
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
|
||||
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper.js';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
|
||||
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
|
||||
|
||||
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection';
|
||||
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection.js';
|
||||
|
||||
describe('getConversationInDirection', () => {
|
||||
const fakeConversation = (markedUnread = false) =>
|
||||
|
||||
Reference in New Issue
Block a user