Skip to content

Commit 475b83f

Browse files
committed
fix backend unit tests
1 parent 843a37c commit 475b83f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/backend/src/nest/storage/orbitDb/orbitDb.service.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { spawnLibp2pInstancesInMemory } from '../../common/test-utils'
1919
import { Libp2pNodeParams } from '../../libp2p/libp2p.types'
2020
import { EventsType, IPFSAccessController, LogEntry } from '@orbitdb/core'
2121
import { LogUpdate } from './orbitdb.types'
22+
import { EventsWithStorage } from './eventsWithStorage'
2223

2324
const logger = createLogger('messagesService:test')
2425

@@ -99,6 +100,7 @@ describe('OrbitDbService', () => {
99100
it('emits put event when an update to a store is made by the client user', async () => {
100101
const store = await orbitDbService.open<EventsType<{ content: string }>>('test-store', {
101102
type: 'events',
103+
Database: EventsWithStorage(),
102104
AccessController: IPFSAccessController({ write: ['*'] }),
103105
sync: false,
104106
})

0 commit comments

Comments
 (0)