basic navidrome implementation

This commit is contained in:
simojenki
2021-03-01 17:28:48 +11:00
parent 3b350c4402
commit 007db24713
17 changed files with 305 additions and 105 deletions

12
tests/encryption.test.ts Normal file
View 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);
});
})