mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Remove leading './' from path if present
This commit is contained in:
parent
616c4c1c33
commit
fcd1e801ec
@ -53,7 +53,7 @@ Object.keys(testAPIs).forEach(API => {
|
||||
describe('addDatabaseType', function () {
|
||||
it('should have the correct custom type', async () => {
|
||||
OrbitDB.addDatabaseType(CustomStore.type, CustomStore)
|
||||
let store = await orbitdb.create(dbPath, CustomStore.type)
|
||||
let store = await orbitdb.create(dbPath.replace(/^\.\//, ''), CustomStore.type)
|
||||
assert.equal(store._type, CustomStore.type)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user