mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
ee79728bf9
GitOrigin-RevId: cc5a36be20c673f8941a2694eaeba80eebb4db6a
26 lines
579 B
JavaScript
26 lines
579 B
JavaScript
import sinon from 'sinon'
|
|
|
|
export const contextProps = {
|
|
projectId: 'test-project',
|
|
hasWritePermissions: true,
|
|
userHasFeature: () => true,
|
|
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: [],
|
|
folders: []
|
|
}
|
|
],
|
|
initialSelectedEntityId: 'entity-1',
|
|
onSelect: sinon.stub()
|
|
}
|