Check that user.refProviders[provider] is set to a truthy value (#4063)

* Ensure that user.refProviders is set to a truthy value

* Update stories

* Update tests

GitOrigin-RevId: 51919f755f6d3bcb9d3564685253222691b0d92b
This commit is contained in:
Alf Eaton 2021-05-19 13:07:30 +01:00 committed by Copybot
parent 3a45d270ec
commit 609c4495f5

View file

@ -4,7 +4,7 @@ export const contextProps = {
projectId: 'test-project', projectId: 'test-project',
hasWritePermissions: true, hasWritePermissions: true,
userHasFeature: () => true, userHasFeature: () => true,
refProviders: {}, refProviders: { mendeley: false, zotero: false },
reindexReferences: () => { reindexReferences: () => {
console.log('reindex references') console.log('reindex references')
}, },