/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/application-generic/src/encryption/cipher.spec.ts
19 строк
508 B
Adam Chmara
chore(root): global lint fixes (#8842)
31 июл 2025, 17:20
Не верифицирован
31 июл 2025, 17:20
6ee5a5b
Код
Авторство
О чём код?
import { decrypt, encrypt } from './cipher'; describe('Encrypt secret', () => { it('should encrypt a credential', async () => { const password = '123'; const encrypted = encrypt(password); expect(encrypted).not.toEqual(password); expect(encrypted.length).toEqual(65); }); it('should decrypt a credential', async () => { const password = '123'; const encrypted = encrypt(password); const decrypted = decrypt(encrypted); expect(decrypted).toEqual(password); }); });