mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
basic navidrome implementation
This commit is contained in:
12
tests/encryption.test.ts
Normal file
12
tests/encryption.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import encryption from '../src/encryption';
|
||||
|
||||
describe("encrypt", () => {
|
||||
const e = encryption();
|
||||
|
||||
it("can encrypt and decrypt", () => {
|
||||
const value = "bobs your uncle"
|
||||
const hash = e.encrypt(value)
|
||||
expect(hash.encryptedData).not.toEqual(value);
|
||||
expect(e.decrypt(hash)).toEqual(value);
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user