1 | const { expect } = require('chai');
|
2 | const { encrypt, decrypt } = require('../lib/crypto');
|
3 | const randomStr = require('../lib/randomStr')();
|
4 |
|
5 | describe('crypto', function () {
|
6 | it('decrypt(encrypt(randomStr)) => randomStr', function () {
|
7 | expect(decrypt(encrypt(randomStr))).to.equal(randomStr);
|
8 | });
|
9 | });
|