mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
test: Rename tests to better reflect what is being tested.
This commit is contained in:
parent
113d954b42
commit
796e84af10
@ -129,7 +129,7 @@ describe('KeyStore', () => {
|
|||||||
strictEqual(actual, expected)
|
strictEqual(actual, expected)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('creates a key when storage is closed', async () => {
|
it('doesn\'t create a key when keystore is closed', async () => {
|
||||||
let err
|
let err
|
||||||
await keystore.close()
|
await keystore.close()
|
||||||
try {
|
try {
|
||||||
@ -171,7 +171,7 @@ describe('KeyStore', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
it('loads default storage using default path', async () => {
|
it('uses default storage and default path to retrieve a key', async () => {
|
||||||
deepStrictEqual(await keystore.getKey('key1'), unmarshalledPrivateKey)
|
deepStrictEqual(await keystore.getKey('key1'), unmarshalledPrivateKey)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -194,7 +194,7 @@ describe('KeyStore', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
it('loads custom storage', async () => {
|
it('uses the given storage to retrieve a key', async () => {
|
||||||
deepStrictEqual(await keystore.getKey('key2'), unmarshalledPrivateKey)
|
deepStrictEqual(await keystore.getKey('key2'), unmarshalledPrivateKey)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -219,7 +219,7 @@ describe('KeyStore', () => {
|
|||||||
await rmrf(keysPath)
|
await rmrf(keysPath)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('loads default storage using custom path', async () => {
|
it('uses default storage using given path to retrieve a key', async () => {
|
||||||
deepStrictEqual(await keystore.getKey('key3'), unmarshalledPrivateKey)
|
deepStrictEqual(await keystore.getKey('key3'), unmarshalledPrivateKey)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user