2021-03-18 05:52:36 -04:00
|
|
|
import sinon from 'sinon'
|
|
|
|
|
|
|
|
export const contextProps = {
|
|
|
|
projectId: 'test-project',
|
|
|
|
hasWritePermissions: true,
|
2021-03-24 06:06:56 -04:00
|
|
|
userHasFeature: () => true,
|
2021-03-18 05:52:36 -04:00
|
|
|
refProviders: {},
|
|
|
|
reindexReferences: () => {
|
|
|
|
console.log('reindex references')
|
|
|
|
},
|
|
|
|
setRefProviderEnabled: provider => {
|
|
|
|
console.log(`ref provider ${provider} enabled`)
|
|
|
|
},
|
|
|
|
setStartedFreeTrial: () => {
|
|
|
|
console.log('started free trial')
|
|
|
|
},
|
|
|
|
rootFolder: [
|
|
|
|
{
|
|
|
|
docs: [{ _id: 'entity-1' }],
|
|
|
|
fileRefs: [],
|
2021-04-27 03:52:58 -04:00
|
|
|
folders: [],
|
|
|
|
},
|
2021-03-18 05:52:36 -04:00
|
|
|
],
|
|
|
|
initialSelectedEntityId: 'entity-1',
|
2021-04-27 03:52:58 -04:00
|
|
|
onSelect: sinon.stub(),
|
2021-03-18 05:52:36 -04:00
|
|
|
}
|