mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
33 lines
767 B
JavaScript
33 lines
767 B
JavaScript
/**
|
|
* LZString tests.
|
|
*
|
|
* @author crespyl [peter@crespyl.net]
|
|
* @copyright Peter Jacobs 2021
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "LZString Compress To Base64",
|
|
input: "hello world",
|
|
expectedOutput: "BYUwNmD2AEDukCcwBMg=",
|
|
recipeConfig: [
|
|
{
|
|
"op": "LZString Compress",
|
|
"args": ["Base64"]
|
|
}
|
|
],
|
|
},
|
|
{
|
|
name: "LZString Decompress From Base64",
|
|
input: "BYUwNmD2AEDukCcwBMg=",
|
|
expectedOutput: "hello world",
|
|
recipeConfig: [
|
|
{
|
|
"op": "LZString Decompress",
|
|
"args": ["Base64"]
|
|
}
|
|
],
|
|
}
|
|
]);
|