mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 06:01:02 +01:00
23 lines
602 B
JavaScript
23 lines
602 B
JavaScript
/**
|
|
* File tree tests.
|
|
*
|
|
* @author sw5678
|
|
* @copyright Crown Copyright 2023
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
"name": "File Tree: basic example",
|
|
"input": "/test_dir1/test_file1.txt\n/test_dir1/test_file2.txt\n/test_dir2/test_file1.txt",
|
|
"expectedOutput": "test_dir1\n|---test_file1.txt\n|---test_file2.txt\ntest_dir2\n|---test_file1.txt",
|
|
"recipeConfig": [
|
|
{
|
|
"op": "File Tree",
|
|
"args": ["/", "Line feed"],
|
|
},
|
|
],
|
|
}
|
|
]);
|