import { IChannelServices } from "@fluidframework/datastore-definitions" ; import { MockFluidDataStoreRuntime , MockContainerRuntimeFactory , MockStorage , } from "@fluidframework/test-runtime-utils" ; import { SharedXTree , SharedXTreeFactory } from ".." ; describe ( `XTree` , ( ) => { let tree1 ; let tree2 ; let dataStoreRuntime ; let containterRuntimeFactory ; beforeEach ( async ( ) => { containterRuntimeFactory = new MockContainerRuntimeFactory ( ) ; dataStoreRuntime = new MockFluidDataStoreRuntime ( ) ; const containerRuntime1 = containterRuntimeFactory . createContainerRuntime ( dataStoreRuntime ) ; const services1 = { deltaConnection : containerRuntime1 . createDeltaConnection ( ) , objectStorage : new MockStorage ( ) } ; tree1 = new SharedXTree ( dataStoreRuntime , "tree1" , SharedXTreeFactory . Attributes ) ; tree1 . connect ( services1 ) ; const dataStoreRuntime2 = new MockFluidDataStoreRuntime ( ) ; const containerRuntime2 = containterRuntimeFactory . createContainerRuntime ( dataStoreRuntime2 ) ; const services2 = { deltaConnection : containerRuntime2 . createDeltaConnection ( ) , objectStorage : new MockStorage ( ) } ; tree2 = new SharedXTree ( dataStoreRuntime2 , "tree2" , SharedXTreeFactory . Attributes ) ; tree2 . connect ( services2 ) ; } ) ; it ( "works" , ( ) => { } ) ; } ) ;