Stores refactor: convert TypingStore; rename TestStores to TestSdkContext (#9454)

This commit is contained in:
kegsay 2022-10-19 14:14:14 +01:00 committed by GitHub
parent bb0c175b7e
commit 13fbd096b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 22 deletions

View file

@ -27,7 +27,7 @@ import { MatrixDispatcher } from '../../src/dispatcher/dispatcher';
import { UPDATE_EVENT } from '../../src/stores/AsyncStore';
import { ActiveRoomChangedPayload } from '../../src/dispatcher/payloads/ActiveRoomChangedPayload';
import { SpaceStoreClass } from '../../src/stores/spaces/SpaceStore';
import { TestStores } from '../TestStores';
import { TestSdkContext } from '../TestSdkContext';
// mock out the injected classes
jest.mock('../../src/PosthogAnalytics');
@ -77,7 +77,7 @@ describe('RoomViewStore', function() {
// Make the RVS to test
dis = new MatrixDispatcher();
slidingSyncManager = new MockSlidingSyncManager();
const stores = new TestStores();
const stores = new TestSdkContext();
stores._SlidingSyncManager = slidingSyncManager;
stores._PosthogAnalytics = new MockPosthogAnalytics();
stores._SpaceStore = new MockSpaceStore();