Adding and removing tests

This commit is contained in:
sw5678 2024-02-12 16:52:43 +00:00
parent 9829b419b9
commit c7377da37f
4 changed files with 65 additions and 175 deletions

View file

@ -1,4 +1,6 @@
/**
* File tree tests.
*
* @author sw5678
* @copyright Crown Copyright 2023
* @license Apache-2.0
@ -7,14 +9,13 @@ import TestRegister from "../../lib/TestRegister.mjs";
TestRegister.addTests([
{
"name": "Swap Case: basic example",
"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": [
],
"args": ["/", "Line feed"],
},
],
}