mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 23:39:59 +00:00
11 lines
318 B
TypeScript
11 lines
318 B
TypeScript
![]() |
import test from "ava";
|
||
|
|
||
|
import { encrypt, decrypt } from "./crypt";
|
||
|
|
||
|
test("encrypt() followed by decrypt()", t => {
|
||
|
const original = "banana 123 👀 💕"; // Includes emojis to verify utf8 stuff works
|
||
|
const encrypted = encrypt(original);
|
||
|
const decrypted = decrypt(encrypted);
|
||
|
t.is(decrypted, original);
|
||
|
});
|