mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
chore(suite-sync): remove redundant dep
This commit is contained in:
committed by
Bohdan Juříček (Rebase PR Action)
parent
91ad089f54
commit
78b9c13e3b
@@ -133,7 +133,6 @@ export const createSuiteSyncCompositionRoot = (
|
||||
dispatch: deps.dispatch,
|
||||
ensureWalletSuiteSyncOn: createEnsureWalletSuiteSyncOn({
|
||||
getState: deps.getState,
|
||||
refreshSuiteSyncKeys,
|
||||
ensureSuiteSyncData: subscribeSuiteSyncData,
|
||||
subscriptionStorage,
|
||||
}),
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {
|
||||
EnsureWalletSuiteSyncOn,
|
||||
RefreshSuiteSyncKeysDep,
|
||||
SubscribeSuiteSyncDataDep,
|
||||
SubscriptionStorageDep,
|
||||
} from '@suite-common/suite-sync-types';
|
||||
@@ -13,7 +12,6 @@ import { isFwUpgradeNeededForSuiteSync, isSuiteSyncSupportedByDevice } from '../
|
||||
export type EnsureWalletSuiteSyncOnDeps = {
|
||||
getState: () => any;
|
||||
} & SubscribeSuiteSyncDataDep &
|
||||
RefreshSuiteSyncKeysDep &
|
||||
SubscriptionStorageDep;
|
||||
|
||||
export const createEnsureWalletSuiteSyncOn =
|
||||
|
||||
@@ -29,7 +29,6 @@ describe(createEnsureWalletSuiteSyncOn.name, () => {
|
||||
getState: () => createMockState([]),
|
||||
ensureSuiteSyncData: null,
|
||||
subscriptionStorage: createSubscriptionStorageMock(),
|
||||
refreshSuiteSyncKeys: null,
|
||||
});
|
||||
|
||||
const result = await createEnsureWalletSuiteSyncOn(deps)({
|
||||
@@ -49,7 +48,6 @@ describe(createEnsureWalletSuiteSyncOn.name, () => {
|
||||
|
||||
const deps = createMockDeps<EnsureWalletSuiteSyncOnDeps>({
|
||||
getState: () => createMockState([mockSuiteDevice({ unavailableCapabilities })]),
|
||||
refreshSuiteSyncKeys: null,
|
||||
ensureSuiteSyncData: null,
|
||||
subscriptionStorage: createSubscriptionStorageMock(),
|
||||
});
|
||||
@@ -71,7 +69,6 @@ describe(createEnsureWalletSuiteSyncOn.name, () => {
|
||||
|
||||
const deps = createMockDeps<EnsureWalletSuiteSyncOnDeps>({
|
||||
getState: () => createMockState([DEVICE_123]),
|
||||
refreshSuiteSyncKeys: null,
|
||||
ensureSuiteSyncData: () => Promise.resolve(ensureResult),
|
||||
subscriptionStorage: createSubscriptionStorageMock(),
|
||||
});
|
||||
@@ -93,7 +90,6 @@ describe(createEnsureWalletSuiteSyncOn.name, () => {
|
||||
|
||||
const deps = createMockDeps<EnsureWalletSuiteSyncOnDeps>({
|
||||
getState: () => createMockState([DEVICE_123]),
|
||||
refreshSuiteSyncKeys: null,
|
||||
ensureSuiteSyncData: () => Promise.resolve(ensureResult),
|
||||
subscriptionStorage: createSubscriptionStorageMock(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user