Fix database address usage

This commit is contained in:
haad
2023-03-09 08:38:47 +02:00
parent 0bc17bd9f5
commit ec3f5cbfa0
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ describe('Open databases', function () {
})
it('creates a directory for the database oplog', async () => {
const expectedPath = path.join(orbitdb1.directory, `./${db.address.path}`, '/log/_heads')
const expectedPath = path.join(orbitdb1.directory, `./${db.address}`, '/log/_heads')
const directoryExists = fs.existsSync(expectedPath)
strictEqual(directoryExists, true)
})