// import assert from 'assert'; // import { encrypt, decrypt } from '../client/helpers/'; // describe("Helper::crypto", function() { // it("can encrypt", function() { // const key = "SUPER_KEY"; // const obj = {a: 3, b:4} // const encrypted_obj = encrypt(obj, key); // assert.ok(encrypted_obj); // assert.notEqual(obj, encrypted_obj); // }); // it("can decrypt", function() { // const key = "SUPER_KEY"; // const obj = {a: 3, b:4} // const encrypted_obj = encrypt(obj,key); // const decrypted_obj = decrypt(encrypted_obj, key); // assert.equal(JSON.stringify(obj), JSON.stringify(decrypted_obj)); // }); // });