mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Fix for browsers
This commit is contained in:
parent
34f25fa5e4
commit
06d559125a
@ -682,7 +682,8 @@ describe('Sync protocol', function () {
|
||||
log1 = await Log(testIdentity1, { logId: 'synclog6' })
|
||||
log2 = await Log(testIdentity2, { logId: 'synclog6' })
|
||||
|
||||
process?.on('unhandledRejection', handleError)
|
||||
if (typeof process !== "undefined" )
|
||||
process.on('unhandledRejection', handleError)
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
@ -702,7 +703,8 @@ describe('Sync protocol', function () {
|
||||
await ipfs1.stop()
|
||||
await ipfs2.stop()
|
||||
|
||||
process?.off('unhandledRejection', handleError)
|
||||
if (typeof process !== "undefined" )
|
||||
process.off('unhandledRejection', handleError)
|
||||
})
|
||||
|
||||
it('does not crash when no listeners are attached to the `error` event on `Sync.events`', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user